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
The Dokan Pro WordPress plugin is vulnerable to improper privilege management (CWE-269) in all versions up to 5.0.4. The vulnerability arises because the update_capabilities REST handler accepts arbitrary capability strings from the request body and passes them directly to WP_User::add_cap() without allowlist validation. The only check performed is that the caller has the dokandar capability. This flaw allows authenticated attackers with Vendor-level access or higher, on sites with the Vendor Staff module enabled, to escalate privileges by granting themselves or others administrator capabilities, resulting in complete site compromise.
Potential Impact
Successful exploitation allows authenticated users with Vendor-level access or above to escalate privileges by assigning arbitrary WordPress capabilities, including administrator rights, to vendor_staff accounts. This leads to full site takeover, compromising confidentiality, integrity, and availability of the affected WordPress site.
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 update_capabilities REST endpoint and disable the Vendor Staff module if not required. Monitor for updates from wedevs and apply official patches promptly once released.
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
The Dokan Pro WordPress plugin is vulnerable to improper privilege management (CWE-269) in all versions up to 5.0.4. The vulnerability arises because the update_capabilities REST handler accepts arbitrary capability strings from the request body and passes them directly to WP_User::add_cap() without allowlist validation. The only check performed is that the caller has the dokandar capability. This flaw allows authenticated attackers with Vendor-level access or higher, on sites with the Vendor Staff module enabled, to escalate privileges by granting themselves or others administrator capabilities, resulting in complete site compromise.
Potential Impact
Successful exploitation allows authenticated users with Vendor-level access or above to escalate privileges by assigning arbitrary WordPress capabilities, including administrator rights, to vendor_staff accounts. This leads to full site takeover, compromising confidentiality, integrity, and availability of the affected WordPress site.
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 update_capabilities REST endpoint and disable the Vendor Staff module if not required. Monitor for updates from wedevs and apply official patches promptly once released.
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/08/2026, 13:08:04 UTC
Last updated: 08/14/2026, 12:41:08 UTC
Views: 53
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.