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

CVE-2025-26762: WooCommerce Stored XSS Vulnerability

CVE-2025-26762 is a stored cross-site scripting vulnerability in WooCommerce affecting versions up to 9.7.0 that enables attackers to inject malicious scripts. This article covers technical details, security impact, and steps to secure your store.

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-26762 Overview

CVE-2025-26762 is a stored cross-site scripting (XSS) vulnerability in Automattic WooCommerce, the e-commerce plugin for WordPress. The flaw affects all WooCommerce releases up to and including version 9.7.0. It stems from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. Successful exploitation requires an authenticated attacker with high privileges and user interaction, but the injected payload can escape the vulnerable component and affect other users browsing the site.

Critical Impact

Attackers with privileged access can inject persistent JavaScript into WooCommerce pages, enabling session theft, administrative action hijacking, and redirection of store customers to attacker-controlled resources.

Affected Products

  • Automattic WooCommerce plugin for WordPress
  • WooCommerce versions through 9.7.0
  • WordPress sites running vulnerable WooCommerce installations

Discovery Timeline

  • 2025-03-27 - CVE-2025-26762 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-26762

Vulnerability Analysis

The vulnerability is a stored cross-site scripting flaw in WooCommerce. Input supplied through administrative interfaces is persisted without proper encoding or sanitization. When the stored content is later rendered in the browser, the payload executes in the context of the WooCommerce site origin.

The scope-changed property of this issue means the injected script runs beyond the vulnerable component boundary. An attacker who injects a payload through one administrative surface can impact store customers, lower-privileged staff, and site administrators who view the rendered output. The payload executes with the authority of the victim's session, enabling cookie theft, cross-site request forgery against WordPress REST endpoints, and arbitrary DOM manipulation on store pages.

Root Cause

The root cause is improper neutralization of input during web page generation [CWE-79]. WooCommerce accepts user-controlled data through administrative input fields and renders that data back into HTML output without sufficient output encoding. The absence of context-appropriate escaping allows HTML and JavaScript tokens inside stored values to be interpreted by the browser as executable markup.

Attack Vector

Exploitation requires network access to the WooCommerce administrative interface and an authenticated account with high privileges, such as a shop manager or administrator. The attacker submits a crafted value containing JavaScript into a vulnerable field. The payload is persisted in the WordPress database. When another user, including customers or administrators, loads a page that renders the stored value, the browser executes the injected script. See the Patchstack advisory for technical details.

Detection Methods for CVE-2025-26762

Indicators of Compromise

  • Unexpected <script> tags, event handlers (onerror, onload), or encoded JavaScript inside WooCommerce product fields, order notes, or configuration options stored in the wp_options and wp_posts tables.
  • Outbound requests from administrator or customer browsers to unfamiliar domains after loading WooCommerce pages.
  • Creation of new WordPress administrator accounts or unauthorized plugin installs following administrator sessions on WooCommerce pages.

Detection Strategies

  • Review WooCommerce database content for HTML and JavaScript tokens in fields that are expected to contain plain text.
  • Monitor web server access logs for POST requests to WooCommerce admin endpoints originating from unexpected privileged accounts.
  • Enable Content Security Policy (CSP) violation reporting to surface script execution from unauthorized sources on store pages.

Monitoring Recommendations

  • Audit WordPress role assignments and track privileged account activity on WooCommerce installations.
  • Alert on unexpected modifications to WooCommerce product descriptions, settings, and taxonomy terms.
  • Monitor administrative sessions for anomalous DOM activity and outbound requests indicative of session exfiltration.

How to Mitigate CVE-2025-26762

Immediate Actions Required

  • Upgrade WooCommerce to a release later than 9.7.0 that contains the vendor patch.
  • Audit all accounts with shop manager, editor, and administrator roles and revoke access for unneeded privileged users.
  • Enforce multi-factor authentication for every WordPress account with WooCommerce administrative privileges.
  • Review stored WooCommerce content for existing malicious payloads and remove or sanitize any suspicious entries.

Patch Information

Automattic has addressed the issue in a WooCommerce release following version 9.7.0. Review the Patchstack advisory for WooCommerce for the fixed version and update guidance. Apply the update through the WordPress plugin administration page or by deploying the patched release package.

Workarounds

  • Restrict access to WooCommerce administrative endpoints using IP allowlisting at the web server or WAF layer.
  • Deploy a web application firewall rule that blocks requests containing script tags and HTML event handlers targeted at WooCommerce admin endpoints.
  • Implement a strict Content Security Policy that disallows inline script execution on WordPress admin and store pages.
bash
# Configuration example
# Example CSP header to limit inline script execution on WooCommerce pages
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"

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.