{"answers":{"affected":"4 open source packages ship an affected version, including woocommerce/woocommerce. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-37297 in the wild and no public exploit code.","fix":"Upgrade woocommerce/woocommerce to a fixed version for your release line: 8.8.5 or 8.9.3.","what":"CVE-2024-37297 is a medium-severity cross-site scripting vulnerability in woocommerce, published on 12 Jun 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-37297 and fix it if it is affected.\n\nWhat it is: CVE-2024-37297 is a medium-severity cross-site scripting vulnerability in woocommerce, published on 12 Jun 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-37297 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- woocommerce/woocommerce (Packagist): affected from 8.8.0; fixed in 8.8.5\n- woocommerce/woocommerce (Packagist): affected from 8.8.0; fixed in 8.8.5\n- woocommerce/woocommerce (Packagist): affected from 8.9.0; fixed in 8.9.3\n- woocommerce/woocommerce (Packagist): affected from 8.9.0; fixed in 8.9.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-37297/ (Markdown: https://insights.sbomify.com/CVE-2024-37297/index.md)","id":"CVE-2024-37297","markdown":"https://insights.sbomify.com/CVE-2024-37297/index.md","name":"CVE-2024-37297","record":{"aliases":["GHSA-cv23-q6gh-xfrf"],"analysis":{"component_type":"cms_plugin","fix_type":"patch","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"WooCommerce plugin","requires_auth":"low_privilege","summary":"Attackers can inject malicious scripts into checkout and registration forms via manipulated links, potentially hijacking user sessions and data.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"woocommerce","vendor":"woocommerce"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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 \u0026 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 \u0026 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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"WooCommerce has a Cross-Site Scripting Vulnerability in checkout \u0026 registration forms","id":"CVE-2024-37297","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":4,"next":{"headline":"Potential memory exhaustion attack due to sparse slice deserialization","id":"CVE-2024-37298"},"packages":[{"ecosystem":"Packagist","fixed":["8.8.5"],"introduced":["8.8.0"],"last_affected":[],"package":"woocommerce/woocommerce","purl":null,"source":"GHSA-cv23-q6gh-xfrf"},{"ecosystem":"Packagist","fixed":["8.8.5"],"introduced":["8.8.0"],"last_affected":[],"package":"woocommerce/woocommerce","purl":"pkg:composer/woocommerce/woocommerce","source":"GHSA-cv23-q6gh-xfrf"},{"ecosystem":"Packagist","fixed":["8.9.3"],"introduced":["8.9.0"],"last_affected":[],"package":"woocommerce/woocommerce","purl":null,"source":"GHSA-cv23-q6gh-xfrf"},{"ecosystem":"Packagist","fixed":["8.9.3"],"introduced":["8.9.0"],"last_affected":[],"package":"woocommerce/woocommerce","purl":"pkg:composer/woocommerce/woocommerce","source":"GHSA-cv23-q6gh-xfrf"}],"prev":{"headline":"Aimeos HTML client vulnerable to digital products download without proper payment status check","id":"CVE-2024-37296"},"products":["woocommerce"],"published":"2024-06-12","related":[{"cvss_score":8.8,"headline":"WooCommerce Cross-Site Request Forgery (CSRF)","id":"CVE-2019-20891","kev_date_added":null,"published":"2020-06-19"},{"cvss_score":8.8,"headline":"Code injection in n/a","id":"CVE-2017-18356","kev_date_added":null,"published":"2019-01-15"},{"cvss_score":8.1,"headline":"Path traversal in n/a","id":"CVE-2018-20714","kev_date_added":null,"published":"2019-01-15"},{"cvss_score":6.1,"headline":"WooCommerce \u003c= 9.4.2 - PostMessage-Based Cross-Site Scripting","id":"CVE-2025-5062","kev_date_added":null,"published":"2025-05-22"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2019-9168","kev_date_added":null,"published":"2019-02-26"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2015-2329","kev_date_added":null,"published":"2018-02-08"},{"cvss_score":5.9,"headline":"WordPress Product page shipping calculator for WooCommerce Plugin \u003c= 1.3.25 is vulnerable to Cross Site Scripting (XSS)","id":"CVE-2023-32575","kev_date_added":null,"published":"2023-08-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["woocommerce"]},"summary":"Attackers can inject malicious scripts into checkout and registration forms via manipulated links, potentially hijacking user sessions and data.","url":"https://insights.sbomify.com/CVE-2024-37297/"}