CVE-2024-37297Woocommerce
Medium 5.4
Follow: this CVE · Woocommerce · Woocommerce We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 57
- Auth required
- Yes
- Published
- Jun 12, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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
- Apply the vendor's security update for Woocommerce.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | woocommerce/woocommerce |
≥ 8.8.0 < 8.8.5 |
8.8.5 |
composer require "woocommerce/woocommerce:^8.8.5" |
| Packagist | woocommerce/woocommerce |
≥ 8.9.0 < 8.9.3 |
8.9.3 |
composer require "woocommerce/woocommerce:^8.9.3" |
Per OSV / GitHub Advisories (GHSA-cv23-q6gh-xfrf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| woocommerce | woocommerce | ≥ 8.8 < 8.8.5 |
| woocommerce | woocommerce | ≥ 8.9.0 < 8.9.3 |
Official sources
References
Links published by the sources. Open them with care.
- developer.woocommerce.com Press/Media Coverage
- github.com Patch
- github.com Patch
- github.com Patch