CVE-2025-5062

WooCommerce <= 9.4.2 - PostMessage-Based Cross-Site Scripting

Published May 22, 2025 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
The WooCommerce plugin for WordPress is vulnerable to PostMessage-Based Cross-Site Scripting via the 'customize-store' page in all versions up to, and including, 9.4.2 due to insufficient input sanitization and output escaping on PostMessage data. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

Analysis

AI-generated

Technical impact

The WooCommerce plugin for WordPress contains a deficiency in how it handles data sent via the PostMessage API on the ‘customize‑store’ page. This oversight creates a scenario where an attacker can embed arbitrary JavaScript code that will execute when a victim interacts with the page, such as by clicking a crafted link. The flaw permits the injection of malicious scripts without needing any special authentication, thereby enabling attacks that could compromise user sessions, steal credentials, or deface content. The weakness aligns with the input validation and output escaping failure classified by CWE‑79.

Affected Systems

The vulnerability affects installations of the WooCommerce plugin from Automattic for all versions up to and including 9.4.2. Users running the older free WordPress version or any derivative that embeds the same plugin are also at risk until they upgrade to a patched release. No specific operating system or server configuration is required beyond the presence of the affected plugin.

Risk and Exploitability

The CVSS score of 6.1 indicates a moderate severity. An EPSS score of < 1% suggests that while exploitation is possible, it is not widely observed or expected to occur at high frequency. The vulnerability is not yet listed in the CISA KEV catalog, so it has not been reported as a known exploited vulnerability. Attackers can exploit the flaw by persuading a legitimate user to visit a page with malicious PostMessage data, which is then executed client‑side. The required conditions are minimal: an accessible WooCommerce ‘customize‑store’ page and a user’s browser that processes postmessages.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the WooCommerce plugin to version 9.4.3 or newer, which removes the unsafe handling of PostMessage data.
  • If an upgrade cannot be performed immediately, implement server‑side sanitization or a content security policy that blocks inline scripts executed via PostMessage on the concerned page.
  • Deploy a web application firewall rule to detect and block suspicious PostMessage payloads containing potential script fragments before they reach the browser.

Generated by OpenCVE AI on June 18, 2026 at 06:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-16105 The WooCommerce plugin for WordPress is vulnerable to PostMessage-Based Cross-Site Scripting via the 'customize-store' page in all versions up to, and including, 9.4.2 due to insufficient input sanitization and output escaping on PostMessage data. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00137}

epss

{'score': 0.00184}

Type Values Removed Values Added
First Time appeared Woocommerce
Woocommerce woocommerce
CPEs cpe:2.3:a:woocommerce:woocommerce:*:*:*:*:free:wordpress:*:*
Vendors & Products Woocommerce
Woocommerce woocommerce
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The WooCommerce plugin for WordPress is vulnerable to PostMessage-Based Cross-Site Scripting via the 'customize-store' page in all versions up to, and including, 9.4.2 due to insufficient input sanitization and output escaping on PostMessage data. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
Title WooCommerce <= 9.4.2 - PostMessage-Based Cross-Site Scripting
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:23 PM
Reserved
May 21, 2025, 3:37 PM
Status
Analyzed
Published
May 22, 2025, 4:16 AM
Modified
Jun 17, 2026, 9:47 AM