CVE-2025-58917 Overview
CVE-2025-58917 is a stored Cross-Site Scripting (XSS) vulnerability in the Nick Verwymeren Quantities and Units for WooCommerce WordPress plugin. The flaw affects all versions up to and including 1.0.13. It stems from improper neutralization of user-supplied input during web page generation, classified under [CWE-79].
An authenticated attacker with low privileges can inject malicious JavaScript that persists in the application. The payload executes in the browser of any user who views the affected page, requiring user interaction to trigger.
Critical Impact
Successful exploitation allows attackers to execute arbitrary scripts in the context of a victim's session, potentially leading to session theft, account takeover, or defacement of WooCommerce store pages.
Affected Products
- Quantities and Units for WooCommerce plugin (quantities-and-units-for-woocommerce)
- All versions from n/a through 1.0.13
- WordPress sites running WooCommerce with this plugin installed
Discovery Timeline
- 2025-09-26 - CVE-2025-58917 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-58917
Vulnerability Analysis
The vulnerability resides in the Quantities and Units for WooCommerce plugin's handling of user-supplied input fields. The plugin fails to properly sanitize and escape input before storing it and rendering it in the web page context. This allows persistent script payloads to be saved in the database and executed when administrators or customers load the affected pages.
Because the scope is changed (S:C), the injected script can affect resources beyond the vulnerable component, such as WordPress administrative sessions or WooCommerce customer accounts. The confidentiality, integrity, and availability impacts are limited but meaningful in an e-commerce context where account hijacking can lead to financial loss.
Root Cause
The root cause is missing or insufficient output encoding in the plugin's rendering logic. WordPress provides sanitization helpers such as esc_html(), esc_attr(), and wp_kses() that were either not applied or improperly used on stored plugin data. Input accepted through the plugin's configuration or product-level settings is written to the database and later reflected in HTML without neutralization.
Attack Vector
An authenticated user with at least low-level privileges submits a crafted payload containing HTML or JavaScript into a vulnerable field exposed by the plugin. The payload is stored server-side. When another user, typically an administrator or shop manager, navigates to the page rendering that data, the browser parses and executes the injected script. Exploitation requires user interaction, as reflected in the CVSS vector (UI:R).
The vulnerability manifests in the plugin's data rendering paths. See the Patchstack Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-58917
Indicators of Compromise
- Unexpected <script> tags, javascript: URIs, or event handlers (onerror, onload) stored in WooCommerce product metadata or plugin option tables
- Administrator sessions exhibiting unauthorized actions, new user creation, or plugin installations following views of product pages
- Outbound HTTP requests from admin browsers to unfamiliar domains after loading pages controlled by the plugin
Detection Strategies
- Query the wp_postmeta and wp_options tables for entries containing HTML tags or JavaScript syntax within fields owned by the plugin
- Review web server access logs for POST requests targeting the plugin's settings endpoints from low-privileged accounts
- Inspect the browser Content Security Policy (CSP) violation reports for blocked inline script execution on WooCommerce admin pages
Monitoring Recommendations
- Enable WordPress audit logging to track plugin configuration changes and metadata edits
- Monitor for anomalous administrator activity following interactions with product management pages
- Track installations and versions of the quantities-and-units-for-woocommerce plugin across managed WordPress instances
How to Mitigate CVE-2025-58917
Immediate Actions Required
- Identify all WordPress installations running Quantities and Units for WooCommerce version 1.0.13 or earlier
- Restrict administrative and shop manager access to trusted personnel only until a patched version is available
- Audit existing plugin-managed data for suspicious HTML or script content and remove any injected payloads
Patch Information
At the time of the last NVD update, no fixed version has been documented in the enriched CVE data. Monitor the Patchstack Vulnerability Report and the plugin's WordPress.org listing for an official update beyond 1.0.13.
Workarounds
- Deactivate and remove the plugin until a patched release is available if it is not business-critical
- Deploy a Web Application Firewall (WAF) rule set that blocks XSS payloads targeting the plugin's endpoints
- Enforce a strict Content Security Policy (CSP) that disallows inline scripts on WordPress administrative pages
- Limit the assignment of shop manager and higher WooCommerce roles to reduce the pool of accounts able to inject payloads
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

