CVE-2025-5062 MEDIUM

CVE-2025-5062: WooCommerce <= 9.4.2 - PostMessage-Based Cross-Site Scripting

Vendor Automattic
Product WooCommerce
Weakness CWE-79 · XSS
Published May 22, 2025
Last update April 8, 2026

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

WooCommerce versions up to 9.3.2 contain a cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts into pages viewed by other users. The vulnerability requires user interaction—typically clicking a malicious link—and can affect the integrity and confidentiality of user data. Sites should update to version 10.9.1 or later.

What an attacker can do

03Attacker Capabilities

Inject malicious scripts that execute in other users' browsers when they visit a crafted link.

Potential impact on your site

04Site Impact

Attackers can steal user session tokens, modify page content, or redirect visitors to phishing sites.

Conditions required to exploit

05Prerequisites

No authentication required. Victim must click a malicious link or visit an attacker-controlled page.

Key dates

06Disclosure timeline

May 22, 2025 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE