{
 "id": "WPSEC-2026-4307",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4307/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4307/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4307/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4307.json",
 "title": "User Role Editor <= 4.67.1 - Authenticated (Custom-level+) Privilege Escalation via Role Assignment Restriction Bypass",
 "description": "The User Role Editor plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.67.1 due to incomplete enforcement of its critical-capability restriction on role assignment. The 'Change role to...' bulk action check re-implemented WordPress request parsing and sanitized role IDs with sanitize_key(), so crafted request parameters could bypass it, and role assignments made by WordPress itself on the user profile page, the 'Add New User' page and the multisite 'Add Existing User' invitation were not checked at all. This makes it possible for authenticated attackers who were delegated the 'promote_users' capability to assign themselves or other users roles with capabilities they do not hold, such as administrator-level roles.",
 "plugin": {
  "slug": "user-role-editor",
  "name": "User Role Editor",
  "full_name": "User Role Editor",
  "wordpress_org": "https://wordpress.org/plugins/user-role-editor/",
  "advisories_url": "https://wpsec.com/vuln/plugin/user-role-editor/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/user-role-editor"
 },
 "type": "PRIV",
 "cwe": [
  "CWE-269"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 7.2,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.68",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.68"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.68",
 "remediation": "Update to 4.68 or later.",
 "fix_released": "2026-11-30T12:35:57+00:00",
 "published": "2026-12-01T13:07:07+00:00",
 "updated": "2026-12-01T10:56:48.963996+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4307/",
  "https://plugins.svn.wordpress.org/user-role-editor/tags/4.68/",
  "https://wordpress.org/plugins/user-role-editor/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/user-role-editor",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-12-01"
 }
}