Dokan Pro <= 5.0.4 - Authenticated (Vendor+) Privilege Escalation via update_capabilities REST Endpoint

8.8
Improper Privilege Management
CVE CVE-2026-12224
CVSS 8.8 (High)
Publicly Published June 30, 2026
Last Updated July 1, 2026
Researcher 0xd4rk5id3 - EnvoraSec

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.

References

Share

Vulnerability Details for Dokan Pro

Software Type Plugin
Software Slug dokan-pro
Patched? Yes
Remediation Update to version 5.0.5, or a newer patched version
Affected Version
  • <= 5.0.4
Patched Version
  • 5.0.5

Recent vulnerabilities in Dokan Pro

# Title CVE ID CVSS Researchers Date
1 Dokan Pro <= 5.0.3 - Missing Authorization CVE-2026-65495 5.3 VanTastic July 23, 2026
2 Dokan Pro <= 5.0.2 - Authenticated (Subscriber+) SQL Injection CVE-2026-65494 6.5 Expatch July 23, 2026
3 Dokan Pro <= 5.0.2 - Authenticated (Subscriber+) PHP Object Injection CVE-2026-65493 7.5 Expatch July 23, 2026
4 Dokan Pro <= 5.0.0 - Unauthenticated Stored Cross-Site Scripting CVE-2026-65492 7.2 dutafi July 23, 2026
5 Dokan Pro <= 5.0.4 - Unauthenticated SQL Injection via 'latitude' and 'longitude' Parameters CVE-2026-12077 7.5 Bao Le June 24, 2026
6 Dokan Pro <= 5.0.4 - Authenticated (Subscriber+) SQL Injection via 'orderby' Parameter CVE-2026-12079 6.5 Bao Le June 24, 2026
7 Dokan Pro <= 5.0.4 - Unauthenticated Privilege Escalation CVE-2026-56033 9.8 VanTastic June 23, 2026
8 dokan pro <= 4.1.3 - Missing Authorization to Unauthenticated Sensitive Information Exposure CVE-2025-12809 5.3 Ahmed Rayen Ayari December 15, 2025
9 Dokan Pro <= 4.0.5 - Authenticated (Vendor+) Privilege Escalation CVE-2025-5931 8.8 Foxyyy August 25, 2025
10 Dokan Pro <= 5.0.5 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2025-39497 6.4 Trương Hữu Phúc (truonghuuphuc) May 16, 2025

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation