CVE-2026-12224
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Dokan Pro plugin's REST endpoint `update_capabilities()` accepts arbitrary capability strings from the request body and passes them directly to `WP_User::add_cap()` without any allowlist validation. The endpoint only verifies the caller holds the 'dokandar' capability, allowing authenticated attackers with Vendor-level access to grant any WordPress capability (including administrator) to vendor_staff accounts when the Vendor Staff module is enabled.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Dokan Pro versionCheck the installed Dokan Pro version via WordPress plugin admin, plugin file header, or database wp_options entry where option_name contains 'dokan' and 'version'. Compare against any known affected version range.Affected if Dokan Pro is installed and running an affected version.
-
Verify Vendor Staff module is enabledNavigate to Dokan Pro settings in WordPress admin, or inspect the WordPress options table for a 'dokan_modules' or similar option that tracks enabled Dokan modules. Look for the Vendor Staff module entry.Affected if The Vendor Staff module is currently enabled in Dokan Pro settings.
-
Identify users with 'dokandar' capabilityQuery the WordPress database (wp_usermeta table) for meta_key containing 'capabilities' and meta_value including 'dokandar', or use WP CLI: wp user list --role=dokan_vendor or wp user list --all | grep dokandar. Review the list for untrusted or low-privilege vendor accounts.Affected if There are user accounts possessing the 'dokandar' capability that are not fully trusted administrators.
-
Confirm REST API endpoint is accessibleTest a POST request to the Dokan REST endpoint (typically /wp-json/dokan/v1/vendor-capabilities or similar path under /wp-json/dokan/) with a test capability in the request body, or inspect the plugin's REST route registration files to verify the update_capabilities() endpoint is registered and not disabled.Affected if The vulnerable REST endpoint is registered and reachable without additional access restrictions.
A user is affected if they run a vulnerable Dokan Pro version with the Vendor Staff module enabled and have untrusted accounts with the 'dokandar' capability able to access the update_capabilities REST endpoint.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataImplement strict allowlist validation for capability names in the update_capabilities() handler, restricting to a predefined set of legitimate vendor_staff capabilities. Until a patch is available, disable the Vendor Staff module if not required, and remove the 'dokandar' capability from untrusted user roles.
- Consultation4.0 h
- Implementation6.0 h
- Testing8.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,080.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-12224 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-12224 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data