CVE-2026-135626 in Simple Membership Plugininfo

Summary

by MITRE • 11/27/2026

The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.9.0 This is due to the `SwpmLevelForm::role()` function applying only `sanitize_text_field()` to the user-supplied `role` parameter with no allowlist, permitting the `administrator` role to be stored verbatim into `swpm_membership_tbl` and subsequently applied to a member's WordPress account via `$user->add_role()` inside `update_wp_user_role()` — also without any role allowlist — when the `swpm_membership_level_changed` action fires. This makes it possible for authenticated attackers with Contributor-level access and above to create a membership level specifying the `administrator` WordPress role, assign themselves to that level, and thereby elevate their own WordPress account to full Administrator, gaining complete site control including the ability to install plugins, edit themes, and manage users. Exploitation requires that the site owner has lowered the plugin's "Admin Dashboard Access Permission" setting from its default `manage_options` capability to a lesser capability such as `edit_posts`, `edit_published_posts`, or `edit_pages`, which grants lower-privileged users access to the SWPM admin dashboard where the vulnerable level-creation form resides. Successful exploitation causes the attacker's own account to receive the complete administrator role.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/27/2026

The Simple Membership plugin for WordPress, specifically in versions up through 4.9.0, contains a critical privilege escalation vulnerability rooted in insufficient input validation and authorization checks within its administrative interface. This flaw allows authenticated attackers with Contributor-level access or higher to escalate their privileges to full Administrator status, provided the site administrator has misconfigured the plugin's security settings by lowering the Admin Dashboard Access Permission from the default manage_options capability to a lesser permission such as edit_posts, edit_published_posts, or edit_pages. When this configuration is present, lower-privileged users gain access to the Simple Membership admin dashboard, which serves as the entry point for exploiting the underlying code defects that govern role assignment and membership level creation.

The technical core of the vulnerability lies in the SwpmLevelForm::role() function, which processes user-supplied input for the role parameter using only sanitize_text_field(). This sanitization method strips tags and special characters but does not enforce an allowlist of valid WordPress roles. Consequently, arbitrary strings can be passed through this filter without rejection. The unsanitized value is then stored verbatim in the swpm_membership_tbl database table via the update_wp_user_role() function when the swpm_membership_level_changed action fires. Crucially, this subsequent function also lacks any role allowlist or capability check before calling WordPress's native $user->add_role() method. This absence of validation means that if a user specifies administrator as their desired role during membership level creation, the system accepts it and applies it directly to the attacker's account without verifying whether they have the authority to assign such high-level privileges.

From an operational perspective, this vulnerability results in complete compromise of the WordPress site by any authenticated user who meets the minimum capability threshold defined by the misconfigured plugin setting. Once the privilege escalation is successful, the attacker gains full Administrator access, which includes the ability to install and activate plugins, edit themes, manage other users, and execute arbitrary code through various vectors available to administrators. This level of control allows for persistent backdoors, data exfiltration, defacement, or further lateral movement within environments where WordPress instances are integrated with broader network infrastructure. The impact is severe because it bypasses the intended hierarchical structure of user roles in WordPress, effectively nullifying the principle of least privilege that lower-level accounts rely on to maintain site security.

This vulnerability aligns with CWE-269, which describes Improper Privilege Management, specifically where an actor obtains privileges not explicitly granted or assigned by a system administrator. It also maps to MITRE ATT&CK technique T1078, Valid Accounts, as the attacker leverages legitimate credentials that have been escalated beyond their intended scope through application logic flaws rather than credential theft. The exploitation chain relies on both a configuration error and code-level deficiencies, highlighting how security misconfigurations can amplify the severity of software vulnerabilities.

Mitigation strategies must address both the immediate technical flaw and the underlying configuration issue. Users should immediately update Simple Membership to version 4.9.1 or later, where these validation checks have been corrected to enforce strict allowlists for role assignments. For sites that cannot upgrade immediately due to compatibility concerns, administrators should revert the Admin Dashboard Access Permission setting back to its default manage_options capability, thereby restricting access to the vulnerable form only to existing Administrators who already possess full control and can safely manage membership levels. Additionally, implementing a Web Application Firewall with rulesets tuned for WordPress privilege escalation attempts may provide an additional layer of defense by blocking requests that attempt to inject unauthorized role values into membership parameters. Regular auditing of user capabilities and adherence to the principle of least privilege in plugin configurations are essential practices to prevent similar exploitation vectors in future updates or other plugins.

Responsible

Wordfence

Reservation

11/23/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00496

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!