{"answers":{"affected":"2 open source packages ship an affected version, including node and node-min.","exploited":"There is no known exploitation of CVE-2024-22020 in the wild and no public exploit code.","fix":"Upgrade node to a fixed version for your release line: 18.20.4, 20.15.1 or 22.4.1.","what":"CVE-2024-22020 is a medium-severity code injection vulnerability in NodeJS Node, published on 9 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-22020 and fix it if it is affected.\n\nWhat it is: CVE-2024-22020 is a medium-severity code injection vulnerability in NodeJS Node, published on 9 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-22020 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- node (Bitnami): affected all versions; fixed in 18.20.4, 20.15.1, 22.4.1\n- node-min (Bitnami): affected all versions; fixed in 18.20.5, 20.18.1, 22.12.0\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-22020/ (Markdown: https://insights.sbomify.com/CVE-2024-22020/index.md)","id":"CVE-2024-22020","markdown":"https://insights.sbomify.com/CVE-2024-22020/index.md","name":"CVE-2024-22020","record":{"aliases":["ALPINE-CVE-2024-22020","AZL-43195","AZL-43216","BELL-CVE-2024-22020","BIT-node-2024-22020","BIT-node-min-2024-22020","CLEANSTART-2026-ER77659","CLEANSTART-2026-RM98844","CLSA-2025-1756932817","CLSA-2026-1771494125","DEBIAN-CVE-2024-22020","GHSA-ch4x-f5c4-36gv","UBUNTU-CVE-2024-22020"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js runtime","requires_auth":"none","summary":"Attackers can bypass network import restrictions in Node.js by embedding non-network imports in data URLs, leading to arbitrary code execution.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A security flaw in Node.js  allows a bypass of network import restrictions.\nBy embedding non-network imports in data URLs, an attacker can execute arbitrary code, compromising system security.\nVerified on various platforms, the vulnerability is mitigated by forbidding data URLs in network imports.\nExploiting this flaw can violate network import security, posing a risk to developers and servers.","ecosystems":["Bitnami"],"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":"Code injection in Node","id":"CVE-2024-22020","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Missing authorization in Availability Orchestrator","id":"CVE-2024-22021"},"packages":[{"ecosystem":"Bitnami","fixed":["18.20.4","20.15.1","22.4.1"],"introduced":["0","19.0.0","21.0.0"],"last_affected":[],"package":"node","purl":"pkg:bitnami/node","source":"BIT-node-2024-22020"},{"ecosystem":"Bitnami","fixed":["18.20.5","20.18.1","22.12.0"],"introduced":["0","19.0.0","21.0.0"],"last_affected":[],"package":"node-min","purl":"pkg:bitnami/node-min","source":"BIT-node-min-2024-22020"}],"prev":{"headline":"Denial of service in Node","id":"CVE-2024-22019"},"products":["Node"],"published":"2024-07-09","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"total"},"state":"PUBLISHED","updated":"2025-04-30","vendors":["NodeJS"]},"summary":"Attackers can bypass network import restrictions in Node.js by embedding non-network imports in data URLs, leading to arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2024-22020/"}