CVE-2024-37297: woocommerce
Vulnerability summary
CVE-2024-37297 is a medium (CVSS 6.1) vulnerability in woocommerce. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 40.5% of scored vulnerabilities. Fixed in 8.8.5.
Timeline
- 12-06-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
WooCommerce is an open-source e-commerce platform built on WordPress. A vulnerability introduced in WooCommerce 8.8 allows for cross-site scripting. A bad actor can manipulate a link to include malicious HTML & JavaScript content. While the content is not saved to the database, the links may be sent to victims for malicious purposes. The injected JavaScript could hijack content & data stored in the browser, including the session. The URL content is read through the `Sourcebuster.js` library and then inserted without proper sanitization to the classic checkout and registration forms. Versions 8.8.5 and 8.9.3 contain a patch for the issue. As a workaround, one may disable the Order Attribution feature.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NDiffers
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
0.00 pp
From 0.48% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-80Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
Woocommerce1 product
- woocommerce≥ 8.8.0, < 8.8.5 | ≥ 8.8, < 8.8.5 | ≥ 8.9.0, < 8.9.3
Wordpress1 product
- woocommerce≥ 8.8.0, ≤ 8.8.4 (fixed in 8.8.5) | ≥ 8.9.0, ≤ 8.9.2 (fixed in 8.8.5)
2 vendors · 2 products
References
5 links- github.com/woocommerce/woocommerce/commit/0e9888305d0cb9557e58f558526ab11cb3bcc4b4X Refsource MISCPatch
- github.com/woocommerce/woocommerce/commit/915e32a42762916b745a7e663c8b69a698da8b67X Refsource MISCPatch
- developer.woocommerce.com/2024/06/10/developer-advisory-xss-vulnerability-8-8-0X Refsource MISCPress/Media Coverage