Live threats

All CVEs / Woocommerce

CVE-2024-37297Woocommerce

Medium 5.4

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
Weakness (CWE)
CWE-79, CWE-80
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Woocommerce.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
woocommercewoocommerce≥ 8.8 < 8.8.5
woocommercewoocommerce≥ 8.9.0 < 8.9.3

Official sources

References

Links published by the sources. Open them with care.