A critical (CVSS 9.8) eval injection flaw in the Restrictions for BuddyPress plugin lets unauthenticated attackers run arbitrary code on a WordPress server with a single GET request.
What Is It
CVE-2026-120539 is a remote code execution vulnerability in the Restrictions for BuddyPress plugin for WordPress, published by Wordfence on 2026-11-21. It is classified as CWE-95 (eval injection). The plugin takes the attacker-controlled request URI, places it into a PHP expression inside a double-quoted string, and runs it with eval(). PHP interpolates double-quoted strings, so a {${...}} construct in the URL path runs during interpolation. The attacker doesn't need to break out of the quotes, and WordPress' slashing doesn't block it.
Why It Matters
The CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H: network-reachable, low complexity, no privileges and no user interaction. Confidentiality, integrity and availability impact are all high. The record says the affected conditions are enabled by default and are evaluated before any logged-in check. No plugin configuration is needed for a site to be exposed. One unauthenticated GET request is enough for code execution on the server.
The supplied CISA KEV entry is empty, so CISA has not confirmed active exploitation of this CVE in the data provided. NVD lists the record as "Deferred."
What's Vulnerable
- Vendor: seventhqueen
- Product: Restrictions for BuddyPress (
bp-restrict) - Affected versions: all versions up to and including 1.5.4
A site can only be exploited if BuddyPress and Paid Memberships Pro are both active alongside this plugin. The record points to the vulnerable code paths in class-bp-restrict-admin.php, class-bp-restrict-pmpro.php and class-bp-restrict.php in the 1.5.4 tag.
Patch Status
The NVD record links to a 1.5.5 release in the vendor's GitHub repository, and every version through 1.5.4 is listed as affected. Administrators running Restrictions for BuddyPress with BuddyPress and Paid Memberships Pro should move off 1.5.4 or earlier to the 1.5.5 release. There is no CISA KEV required action or due date, because the supplied KEV entry is empty.
Sources
- NVD, CVE-2026-120539
- CVE.org; CVE-2026-120539
- Wordfence Threat Intel advisory
- seventhqueen/buddypress-restrict, 1.5.5 release
- WordPress Trac; class-bp-restrict-admin.php L213 (1.5.4)
- WordPress Trac; class-bp-restrict-pmpro.php L184 (1.5.4)
- WordPress Trac; class-bp-restrict-pmpro.php L187 (1.5.4)
- WordPress Trac; class-bp-restrict.php L172 (1.5.4)
- WordPress Trac; class-bp-restrict.php L210 (1.5.4)