{"answers":{"affected":"4 open source packages ship an affected version, including cross-spawn.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21538 exists.","fix":"Upgrade cross-spawn to a fixed version for your release line: 6.0.6 or 7.0.5.","what":"CVE-2024-21538 is a high-severity denial of service vulnerability in cross-spawn, published on 8 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-21538 and fix it if it is affected.\n\nWhat it is: CVE-2024-21538 is a high-severity denial of service vulnerability in cross-spawn, published on 8 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21538 exists.\n\nAffected packages and fixed versions:\n- cross-spawn (npm): affected all versions; fixed in 6.0.6\n- cross-spawn (npm): affected all versions; fixed in 6.0.6\n- cross-spawn (npm): affected from 7.0.0; fixed in 7.0.5\n- cross-spawn (npm): affected from 7.0.0; fixed in 7.0.5\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-21538/ (Markdown: https://insights.sbomify.com/CVE-2024-21538/index.md)","id":"CVE-2024-21538","markdown":"https://insights.sbomify.com/CVE-2024-21538/index.md","name":"CVE-2024-21538","record":{"aliases":["AZL-52548","AZL-52551","AZL-52561","AZL-52587","AZL-52604","BELL-CVE-2024-21538","CLEANSTART-2026-JD77118","CLEANSTART-2026-SZ60879","CLSA-2026-1773793042","CLSA-2026-1773965919","CLSA-2026-1776818188","CLSA-2026-1780620667","CLSA-2026-1780620678","GHSA-3xgq-45jj-v275","MINI-4fv6-xqfr-3w7w","MINI-hjrh-87mf-j8gr","MINI-rhgf-5q48-gw9m","MINI-w8hq-vfqh-47j3","ROOT-APP-NPM-CVE-2024-21538","SUSE-SU-2024:4272-1","SUSE-SU-2024:4286-1","SUSE-SU-2024:4300-1","SUSE-SU-2024:4301-1","openSUSE-SU-2024:14550-1","openSUSE-SU-2024:14553-1","openSUSE-SU-2024:14558-1","openSUSE-SU-2024:14559-1","openSUSE-SU-2024:14560-1","openSUSE-SU-2024:14561-1","openSUSE-SU-2025:14615-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js process library","requires_auth":"none","summary":"An attacker can cause a denial of service by crafting a large string that triggers excessive CPU usage in the cross-spawn library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Versions of the package cross-spawn before 6.0.6, from 7.0.0 and before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.","ecosystems":["SUSE:Linux Enterprise Module for Web and Scripting 15 SP5","SUSE:Linux Enterprise Module for Web and Scripting 15 SP6","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","npm","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Regular Expression Denial of Service (ReDoS) in cross-spawn","id":"CVE-2024-21538","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":18,"n_references":5,"next":{"headline":"Regular Expression Denial of Service (ReDoS) in @eslint/plugin-kit","id":"CVE-2024-21539"},"packages":[{"ecosystem":"npm","fixed":["6.0.6"],"introduced":["0"],"last_affected":[],"package":"cross-spawn","purl":null,"source":"GHSA-3xgq-45jj-v275"},{"ecosystem":"npm","fixed":["6.0.6"],"introduced":["0"],"last_affected":[],"package":"cross-spawn","purl":"pkg:npm/cross-spawn","source":"GHSA-3xgq-45jj-v275"},{"ecosystem":"npm","fixed":["7.0.5"],"introduced":["7.0.0"],"last_affected":[],"package":"cross-spawn","purl":null,"source":"GHSA-3xgq-45jj-v275"},{"ecosystem":"npm","fixed":["7.0.5"],"introduced":["7.0.0"],"last_affected":[],"package":"cross-spawn","purl":"pkg:npm/cross-spawn","source":"GHSA-3xgq-45jj-v275"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP5","fixed":["18.20.5-150400.9.30.1"],"introduced":["0"],"last_affected":[],"package":"nodejs18","purl":"pkg:rpm/suse/nodejs18\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP5","source":"SUSE-SU-2024:4301-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP5","fixed":["20.18.1-150500.11.15.1"],"introduced":["0"],"last_affected":[],"package":"nodejs20","purl":"pkg:rpm/suse/nodejs20\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP5","source":"SUSE-SU-2024:4300-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP6","fixed":["20.18.1-150600.3.6.1"],"introduced":["0"],"last_affected":[],"package":"nodejs20","purl":"pkg:rpm/suse/nodejs20\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP6","source":"SUSE-SU-2024:4286-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["18.20.5-8.30.1"],"introduced":["0"],"last_affected":[],"package":"nodejs18","purl":"pkg:rpm/suse/nodejs18\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2024:4272-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["18.20.5-150400.9.30.1"],"introduced":["0"],"last_affected":[],"package":"nodejs18","purl":"pkg:rpm/opensuse/nodejs18\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:4301-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["20.18.1-150500.11.15.1"],"introduced":["0"],"last_affected":[],"package":"nodejs20","purl":"pkg:rpm/opensuse/nodejs20\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:4300-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["20.18.1-150600.3.6.1"],"introduced":["0"],"last_affected":[],"package":"nodejs20","purl":"pkg:rpm/opensuse/nodejs20\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4286-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.1.1-2.1"],"introduced":["0"],"last_affected":[],"package":"jupyter-jupyterlab-latex","purl":"pkg:rpm/opensuse/jupyter-jupyterlab-latex\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14553-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["22.12.0-1.1"],"introduced":["0"],"last_affected":[],"package":"nodejs22","purl":"pkg:rpm/opensuse/nodejs22\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14615-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2024.8.6-2.1"],"introduced":["0"],"last_affected":[],"package":"python-furo","purl":"pkg:rpm/opensuse/python-furo\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14558-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.0.0-2.1"],"introduced":["0"],"last_affected":[],"package":"python-jupyter-ydoc","purl":"pkg:rpm/opensuse/python-jupyter-ydoc\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14559-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.1.0-2.1"],"introduced":["0"],"last_affected":[],"package":"python-nbclassic","purl":"pkg:rpm/opensuse/python-nbclassic\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14550-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.0.2-18.1"],"introduced":["0"],"last_affected":[],"package":"python-nbdime","purl":"pkg:rpm/opensuse/python-nbdime\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14560-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.1.1-4.1"],"introduced":["0"],"last_affected":[],"package":"python-pytest-html","purl":"pkg:rpm/opensuse/python-pytest-html\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14561-1"}],"prev":{"headline":"lilconfig Code Injection vulnerability","id":"CVE-2024-21537"},"products":["cross-spawn","org.webjars.npm:cross-spawn"],"published":"2024-11-08","related":[],"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-07","vendors":["n/a"]},"summary":"An attacker can cause a denial of service by crafting a large string that triggers excessive CPU usage in the cross-spawn library.","url":"https://insights.sbomify.com/CVE-2024-21538/"}