# WooCommerce has a Cross-Site Scripting (XSS) Vulnerability in checkout & registration forms

Advisory record · `GHSA-cv23-q6gh-xfrf`

- **Identifiers:** `GHSA-cv23-q6gh-xfrf` · `CVE-2024-37297` · `PKSA-dn5h-6fwy-vrcq`
- **State:** Confirmed
- **Severity:** CVSS 5.4 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html) · [CWE-80](https://cwe.mitre.org/data/definitions/80.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 12 Jun 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 12 Jun 2024, 19:40 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `woocommerce/woocommerce` (Packagist): affected `>=8.8.0, <8.8.5 || >=8.9.0, <8.9.3`; fixed in `8.8.5`, `8.9.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> WooCommerce versions from 8.8.0 before 8.8.5 and from 8.9.0 before 8.9.3 are vulnerable to cross-site scripting in the classic checkout and registration forms, where URL content read by the Sourcebuster.js library is inserted without proper sanitization. An attacker would need to get a victim to open a manipulated link, which could run injected JavaScript in the victim's browser and access data stored there, including the session. Upgrade to WooCommerce 8.8.5 or 8.9.3; as a workaround, the source suggests disabling the Order Attribution feature.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.4 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0048, the 42nd percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:03 UTC: First seen by agentprime
- 31 Oct 2026, 14:03 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-cv23-q6gh-xfrf)

## Sources

- [GitHub Advisory Database: GHSA-cv23-q6gh-xfrf](https://github.com/advisories/GHSA-cv23-q6gh-xfrf)
- [OSV: GHSA-cv23-q6gh-xfrf](https://osv.dev/vulnerability/GHSA-cv23-q6gh-xfrf)
- <https://github.com/woocommerce/woocommerce/security/advisories/GHSA-cv23-q6gh-xfrf>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-37297>
- <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>
- <https://github.com/woocommerce/woocommerce>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-cv23-q6gh-xfrf>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-cv23-q6gh-xfrf/>. Everything for agents: <https://agentprime.io/llms.txt>.
