CVE-2026-12224: CWE-269 Improper Privilege Management in wedevs Dokan Pro
The Dokan Pro plugin for WordPress is vulnerable to privilege escalation via update_capabilities REST Endpoint in all versions up to, and including, 5.0.4. This is due to the `update_capabilities()` REST handler accepting arbitrary capability strings from the request body and passing them directly to WP_User::add_cap() with no allowlist validation, only verifying that the caller holds the dokandar capability. This makes it possible for authenticated attackers with a self-provisioned Vendor-level access and above, on sites with the Vendor Staff module enabled, to grant arbitrary WordPress capabilities, including administrator, to any vendor_staff account, leading to a full site takeover.
AI Analysis
Technical Summary
CVE-2026-12224 is a privilege escalation vulnerability in the Dokan Pro WordPress plugin affecting all versions up to and including 5.0.4. The issue stems from the update_capabilities REST handler accepting arbitrary capability strings from the request body and passing them directly to WP_User::add_cap() without an allowlist validation. The handler only verifies that the caller has the dokandar capability, which is held by authenticated users with Vendor-level access or above on sites with the Vendor Staff module enabled. This flaw enables such users to escalate privileges by granting themselves or others administrator capabilities, resulting in potential full site takeover.
Potential Impact
An authenticated attacker with Vendor-level access or higher can exploit this vulnerability to grant arbitrary WordPress capabilities, including administrator privileges, to any vendor_staff account. This leads to a complete compromise of the affected WordPress site, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the Vendor Staff module and limit Vendor-level user privileges. Monitor for updates from wedevs regarding patches or official mitigations.
CVE-2026-12224: CWE-269 Improper Privilege Management in wedevs Dokan Pro
Description
The Dokan Pro plugin for WordPress is vulnerable to privilege escalation via update_capabilities REST Endpoint in all versions up to, and including, 5.0.4. This is due to the `update_capabilities()` REST handler accepting arbitrary capability strings from the request body and passing them directly to WP_User::add_cap() with no allowlist validation, only verifying that the caller holds the dokandar capability. This makes it possible for authenticated attackers with a self-provisioned Vendor-level access and above, on sites with the Vendor Staff module enabled, to grant arbitrary WordPress capabilities, including administrator, to any vendor_staff account, leading to a full site takeover.
CVSS v3.1
Score 8.8high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12224 is a privilege escalation vulnerability in the Dokan Pro WordPress plugin affecting all versions up to and including 5.0.4. The issue stems from the update_capabilities REST handler accepting arbitrary capability strings from the request body and passing them directly to WP_User::add_cap() without an allowlist validation. The handler only verifies that the caller has the dokandar capability, which is held by authenticated users with Vendor-level access or above on sites with the Vendor Staff module enabled. This flaw enables such users to escalate privileges by granting themselves or others administrator capabilities, resulting in potential full site takeover.
Potential Impact
An authenticated attacker with Vendor-level access or higher can exploit this vulnerability to grant arbitrary WordPress capabilities, including administrator privileges, to any vendor_staff account. This leads to a complete compromise of the affected WordPress site, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the Vendor Staff module and limit Vendor-level user privileges. Monitor for updates from wedevs regarding patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-06-14T14:48:41.497Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a44ca9627e9c797192fabe6
Added to database: 07/01/2026, 08:06:46 UTC
Last enriched: 07/01/2026, 08:21:34 UTC
Last updated: 07/01/2026, 21:40:39 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.