Vulnerability Description
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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://downloads.wordpress.org/plugin/simple-membership.4.9.1.zip
- https://plugins.trac.wordpress.org/browser/simple-membership/tags/4.9.0/classes/
- https://plugins.trac.wordpress.org/browser/simple-membership/tags/4.9.0/classes/
- https://plugins.trac.wordpress.org/browser/simple-membership/tags/4.9.0/classes/
- https://plugins.trac.wordpress.org/browser/simple-membership/tags/4.9.0/classes/
- https://plugins.trac.wordpress.org/browser/simple-membership/tags/4.9.0/classes/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/0e71c156-9259-4490-9d4
FAQ
What is CVE-2026-135626?
CVE-2026-135626 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2026-135626?
CVE-2026-135626 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-135626?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.