Skip to main content
Vulnerability Database/CVE-2025-57904

CVE-2025-57904: WooCommerce Sales Count Manager XSS Flaw

CVE-2025-57904 is a stored cross-site scripting vulnerability in the Sales Count Manager for WooCommerce plugin that enables attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-57904 Overview

CVE-2025-57904 is a stored cross-site scripting (XSS) vulnerability in the WP-EXPERTS.IN Sales Count Manager for WooCommerce WordPress plugin. The flaw affects all versions up to and including 2.6 and stems from improper neutralization of input during web page generation [CWE-79]. Authenticated attackers with high privileges can inject malicious scripts that persist in the application and execute in the browsers of other users who view the affected pages. The vulnerability is tracked under the Patchstack database and carries a scope change, meaning injected payloads can impact components beyond the vulnerable plugin itself.

Critical Impact

Stored XSS payloads can execute in administrator browser sessions, enabling account takeover, session theft, and unauthorized actions within the WooCommerce storefront.

Affected Products

  • WP-EXPERTS.IN Sales Count Manager for WooCommerce (wc-sales-count-manager)
  • All versions from n/a through 2.6
  • WordPress sites running WooCommerce with the affected plugin installed

Discovery Timeline

  • 2025-09-22 - CVE-2025-57904 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-57904

Vulnerability Analysis

The vulnerability is a stored cross-site scripting flaw in the Sales Count Manager for WooCommerce plugin. The plugin fails to sanitize or encode user-supplied input before writing it into HTML output rendered to browsers. An attacker with elevated privileges can submit a payload containing JavaScript through an input field exposed by the plugin. The payload is persisted in the WordPress database and executed whenever a user loads a page that renders the affected content.

Because the scope is changed, the injected script can affect resources outside the plugin's security boundary, including the broader WordPress admin interface. Successful exploitation requires user interaction, typically an authenticated user visiting the page where the stored payload is rendered.

Root Cause

The root cause is missing output encoding and insufficient input validation on plugin-controlled fields. Developer-supplied values flow from storage into HTML contexts without passing through WordPress sanitization helpers such as esc_html(), esc_attr(), or wp_kses(). This allows active content such as <script> tags and event-handler attributes to render as executable markup.

Attack Vector

An authenticated attacker holding high-privilege access submits a crafted payload through a vulnerable administrative input in the plugin. The payload is stored in the database. When another user, typically an administrator, loads the page rendering that value, the browser executes the attacker's JavaScript in the context of the WordPress site origin.

Typical post-exploitation outcomes include stealing session cookies, performing CSRF-style actions as the victim, injecting additional backdoors into the site, or redirecting store visitors to attacker-controlled pages. The vulnerability requires both prior authentication and user interaction, which limits mass exploitation but remains relevant in multi-user WooCommerce environments.

See the Patchstack advisory for additional technical context.

Detection Methods for CVE-2025-57904

Indicators of Compromise

  • Unexpected <script> tags, javascript: URIs, or on* event-handler attributes stored in WooCommerce plugin option values or post metadata.
  • WordPress administrator sessions exhibiting unexplained outbound requests to unknown domains after loading plugin-managed pages.
  • New administrator accounts or modified user roles created shortly after a privileged user viewed a page rendered by wc-sales-count-manager.

Detection Strategies

  • Audit the WordPress database for plugin-controlled fields containing HTML or JavaScript markup, focusing on tables and option rows written by wc-sales-count-manager.
  • Deploy a web application firewall rule set that inspects admin POST requests for XSS payload patterns targeting plugin endpoints.
  • Review web server access logs for POST requests to plugin administrative routes followed by GET requests that return reflected or stored script content.

Monitoring Recommendations

  • Enable WordPress audit logging to track changes to plugin settings and content modifications by privileged users.
  • Alert on Content Security Policy (CSP) violation reports originating from WordPress admin pages, which can surface injected inline scripts.
  • Monitor for creation of new administrator accounts, API key generation, or theme file edits following plugin configuration changes.

How to Mitigate CVE-2025-57904

Immediate Actions Required

  • Identify all WordPress sites running the Sales Count Manager for WooCommerce plugin version 2.6 or earlier.
  • Restrict administrative access to the plugin to the minimum set of trusted users until a patched release is applied.
  • Review existing plugin configuration fields for any previously injected script content and remove it.

Patch Information

At the time of publication, the Patchstack advisory lists versions through 2.6 as vulnerable, and no fixed version is confirmed in the referenced data. Monitor the Patchstack advisory and the plugin vendor's WordPress.org page for a patched release and apply it as soon as it becomes available.

Workarounds

  • Deactivate and remove the wc-sales-count-manager plugin if it is not business-critical until a fixed version is published.
  • Apply a web application firewall rule to block script tags and JavaScript event handlers in requests targeting plugin administrative endpoints.
  • Enforce a strict Content Security Policy on the WordPress admin interface to limit the impact of inline script execution.
  • Reduce the number of accounts holding administrator or editor roles that can access plugin settings.
bash
# Example: audit WordPress options table for suspicious script content
wp db query "SELECT option_name, option_value FROM wp_options \
  WHERE option_name LIKE '%wc_sales_count%' \
  AND (option_value LIKE '%<script%' OR option_value LIKE '%javascript:%' OR option_value LIKE '%onerror=%');"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.