PublishPress Capabilities: User Role Access Control, Admin Area Permissions <= 2.54.0 - Authenticated (Editor+) Privilege Escalation via Add Capability and Role Creation

High 7.2 CWE-269Fixed in 2.55.0
ID
WPSEC-2026-4295
Plugin
PublishPress Capabilities: User Role Access Control, Admin Area Permissions (capability-manager-enhanced)
Affected
all versions before 2.55.0
Remediation
Update to 2.55.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-269
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-01
Attack surface
PublishPress Capabilities: User Role Access Control, Admin Area Permissions on WPSec AttackSurface
Fix released
Published

Description

The PublishPress Capabilities plugin for WordPress is vulnerable to Privilege Escalation via the 'Add Capability' form on the Capabilities screen and the role creation handler in all versions up to, and including, 2.54.0. This is due to createNewName() rejecting only names among the capabilities the current user already holds, and the add-capability handler adding the submitted capability to the selected role without checking that the user holds it. This makes it possible for authenticated non-administrator users who have been given capability management access (e.g. editors) to add capabilities they do not have, such as manage_options, to editable roles, or to create roles whose slug matches such a capability, and so escalate privileges for accounts in those roles.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0