CVE-2024-37297
PHP vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in WooCommerce versions 8.8.0 and later, affecting the e-commerce platform built on WordPress. The vulnerability was introduced in WooCommerce 8.8 and allows attackers to manipulate links to include malicious HTML and JavaScript content. The issue was patched in versions 8.8.5 and 8.9.3, with the fix also included in WooCommerce 9.0 (WooCommerce Advisory, GitHub Advisory).

Technical details

The vulnerability stems from the Order Attribution feature introduced in WooCommerce 8.5, which uses the Sourcebuster.js library to read traffic source data. In version 8.8, changes to the client-side implementation created a vulnerability where URL content read through the Sourcebuster.js library was inserted without proper sanitization into the classic checkout and registration forms. The issue has been assigned a CVSS v3.1 score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

While the malicious content is not saved to the database, the vulnerability allows attackers to create links that, when clicked by victims, could execute arbitrary JavaScript code in their browsers. This could lead to the hijacking of content and data stored in the browser, including the user's session (WooCommerce Advisory).

Exploitability

The vulnerability can be exploited by manipulating links to include malicious content that targets the registration and classic checkout forms. Proof of concept examples include manipulated URLs targeting the my-account and classic-checkout pages. The vulnerability is only exploitable when the Order Attribution feature is enabled, which is the default setting in affected versions (WPScan).

Mitigation and workarounds

Users are advised to immediately update to either WooCommerce 8.9.3 or the backported version 8.8.5. For those unable to update immediately, a temporary workaround is available by disabling the Order Attribution feature. However, regular updates are strongly recommended for long-term security (WooCommerce Advisory).

Community reactions

The vulnerability was responsibly disclosed through WooCommerce's HackerOne Bug Bounty program by security researcher Eric Caron. Some users reported experiencing a large number of false registrations and order placement attempts around the time the vulnerability was discovered (WooCommerce Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44741HIGH8.8
  • PHP logoPHP
  • pimcore/admin-ui-classic-bundle
NoYesAug 12, 2026
CVE-2026-47233MEDIUM6.5
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-47132MEDIUM5.4
  • PHP logoPHP
  • thorsten/phpmyfaq
NoYesAug 12, 2026
CVE-2026-47234MEDIUM4.4
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-49262LOW3
  • PHP logoPHP
  • aimeos/pagible
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management