Woocommerce: Cross-site scripting
Woocommerce is affected by cross-site scripting. Exposure depends on how the affected operation is made reachable by the site. Injected script can execute in the affected site's origin when the vulnerable output is viewed.
- Component
- Woocommerce
- Plugin slug
woocommerce- Affected
- See vendor advisory
- Safe version
- See mitigation notes
- Published
- Jun 12, 2024
This CVE was published Jun 12, 2024 and is one of 23 known issues for this plugin.
Update, patch or deactivate.
Update Woocommerce to a release outside the affected range, or disable and remove it until a fixed version is available.
No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical 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.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Primary and upstream sources
- NVD record for CVE-2024-37297
- Upstream reference developer.woocommerce.com
- GitHub upstream reference github.com
- GitHub upstream reference github.com
- GitHub security advisory github.com
- Upstream reference developer.woocommerce.com
- GitHub upstream reference github.com
- GitHub upstream reference github.com
- GitHub security advisory github.com