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

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-06-12T15:05:46.468Z
- Modified: 2026-09-10T03:50:15.338Z
- Also known as: GHSA-cv23-q6gh-xfrf
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- woocommerce woocommerce: >= 8.8.0, < 8.8.5; >= 8.9.0, < 8.9.3; from 8.8 before 8.8.5; from 8.9.0 before 8.9.3
- woocommerce/woocommerce (Packagist): from 8.8.0 before 8.8.5; from 8.9.0 before 8.9.3

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/woocommerce/woocommerce/security/advisories/GHSA-cv23-q6gh-xfrf> (patch, web)
- <https://github.com/woocommerce/woocommerce/commit/0e9888305d0cb9557e58f558526ab11cb3bcc4b4> (patch, web)
- <https://github.com/woocommerce/woocommerce/commit/915e32a42762916b745a7e663c8b69a698da8b67> (patch, web)
- <https://developer.woocommerce.com/2024/06/10/developer-advisory-xss-vulnerability-8-8-0> (press/media-coverage, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-37297> (advisory)
- <https://github.com/woocommerce/woocommerce> (package)

## Sources

- CVE List: [CVE-2024-37297](https://www.cve.org/CVERecord?id=CVE-2024-37297), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-cv23-q6gh-xfrf](https://github.com/advisories/GHSA-cv23-q6gh-xfrf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-37297](https://nvd.nist.gov/vuln/detail/CVE-2024-37297), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-37297 · Whole record: https://cve.day/CVE-2024-37297.json · Rebuilt by cve.day 2026-11-25T22:58:41.748Z
