# PublishPress Capabilities: User Role Access Control, Admin Area Permissions <= 2.54.0 - Authenticated (Editor+) Privilege Escalation via Backup Restore

- **ID:** WPSEC-2026-4297
- **Plugin:** PublishPress Capabilities: User Role Access Control, Admin Area Permissions (`capability-manager-enhanced`), https://wordpress.org/plugins/capability-manager-enhanced/
- **Affected versions:** all versions before 2.55.0
- **Fixed in:** 2.55.0 (Update to 2.55.0 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-269
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/capability-manager-enhanced
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4297/

## Description

The PublishPress Capabilities plugin for WordPress is vulnerable to Privilege Escalation via the Backup tool's restore function in all versions up to, and including, 2.54.0. This is due to the 'select_restore' value being passed to get_option() and written over the site's role definitions without checking that it names a real role backup, that its structure is valid, or that the restored roles do not change protected roles or capabilities the user does not hold. This makes it possible for authenticated non-administrator users who have been given backup access (e.g. editors) to replace the role definitions with the contents of an arbitrary option, for example plugin settings they can write through the import feature, and so grant themselves administrative capabilities or break the site's roles.

## References

- https://wpsec.com/vuln/WPSEC-2026-4297/
- https://plugins.svn.wordpress.org/capability-manager-enhanced/tags/2.55.0/
- https://wordpress.org/plugins/capability-manager-enhanced/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4297/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
