{"answers":{"affected":"2 open source packages ship an affected version, including node and node-min. It affects 10 products.","exploited":"There is no known exploitation of CVE-2021-22931 in the wild and no public exploit code.","fix":"Upgrade node to a fixed version for your release line: 12.12.1, 12.22.5, 14.14.1 or 14.17.5.","what":"CVE-2021-22931 is a critical code injection vulnerability in Netapp Active Iq Unified Manager, published on 16 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22931 and fix it if it is affected.\n\nWhat it is: CVE-2021-22931 is a critical code injection vulnerability in Netapp Active Iq Unified Manager, published on 16 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22931 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- node (Bitnami): affected from 12.0.0; fixed in 12.12.1, 12.22.5, 14.14.1, 14.17.5, 16.6.2\n- node-min (Bitnami): affected from 12.0.0; fixed in 12.12.1, 12.22.5, 14.14.1, 14.17.5, 16.6.2\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-2021-22931/ (Markdown: https://insights.sbomify.com/CVE-2021-22931/index.md)","id":"CVE-2021-22931","markdown":"https://insights.sbomify.com/CVE-2021-22931/index.md","name":"CVE-2021-22931","record":{"aliases":["ALPINE-CVE-2021-22931","AZL-32282","AZL-6743","BIT-node-2021-22931","BIT-node-min-2021-22931","CLEANSTART-2026-EB92490","CLEANSTART-2026-KA98679","GHSA-7r9p-c88x-w357"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js DNS library","requires_auth":"none","summary":"Attackers can execute code or hijack domains via DNS response injection in Node.js due to missing hostname validation.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"active_iq_unified_manager","vendor":"netapp"},{"product":"nextgen_api","vendor":"netapp"},{"product":"oncommand_insight","vendor":"netapp"},{"product":"oncommand_workflow_automation","vendor":"netapp"},{"product":"snapcenter","vendor":"netapp"},{"product":"node.js","vendor":"nodejs"},{"product":"graalvm","vendor":"oracle"},{"product":"mysql_cluster","vendor":"oracle"},{"product":"peoplesoft_enterprise_peopletools","vendor":"oracle"},{"product":"sinec_infrastructure_network_services","vendor":"siemens"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-170","name":"Improper Null Termination"}],"description":"Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js dns library which can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library.","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-2021-22931","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"netapp:active_iq_unified_manager","products":["netapp:active_iq_unified_manager","netapp:oncommand_insight","netapp:oncommand_workflow_automation","netapp:snapcenter","nodejs:node.js","oracle:graalvm","oracle:mysql_cluster","oracle:peoplesoft_enterprise_peopletools","siemens:sinec_infrastructure_network_services"],"type":"code_injection","year":"2021"},"n_packages":2,"n_references":9,"next":{"headline":"Weak cryptography in Citrix ShareFile Storage Zones Controller","id":"CVE-2021-22932"},"packages":[{"ecosystem":"Bitnami","fixed":["12.12.1","12.22.5","14.14.1","14.17.5","16.6.2"],"introduced":["12.0.0","12.13.0","14.0.0","14.15.0","16.0.0"],"last_affected":[],"package":"node","purl":"pkg:bitnami/node","source":"BIT-node-2021-22931"},{"ecosystem":"Bitnami","fixed":["12.12.1","12.22.5","14.14.1","14.17.5","16.6.2"],"introduced":["12.0.0","12.13.0","14.0.0","14.15.0","16.0.0"],"last_affected":[],"package":"node-min","purl":"pkg:bitnami/node-min","source":"BIT-node-min-2021-22931"}],"prev":{"headline":"Use After Free in node.js","id":"CVE-2021-22930"},"products":["Node"],"published":"2021-08-16","related":[{"cvss_score":9.8,"headline":"Spring Security authorization rules can be bypassed via forward or include dispatcher types","id":"CVE-2022-31692","kev_date_added":null,"published":"2022-10-31"},{"cvss_score":9.8,"headline":"Use after free in systemd-resolved","id":"CVE-2022-2526","kev_date_added":null,"published":"2022-09-09"},{"cvss_score":9.8,"headline":"Authorization bypass in Spring Security","id":"CVE-2022-22978","kev_date_added":null,"published":"2022-05-19"},{"cvss_score":9,"headline":"Code injection in Java","id":"CVE-2018-2938","kev_date_added":null,"published":"2018-07-18"},{"cvss_score":8.3,"headline":"Code injection in Java","id":"CVE-2018-2941","kev_date_added":null,"published":"2018-07-18"},{"cvss_score":8.3,"headline":"Code injection in Java","id":"CVE-2018-2942","kev_date_added":null,"published":"2018-07-18"}],"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":"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-30","vendors":["NodeJS"]},"summary":"Attackers can execute code or hijack domains via DNS response injection in Node.js due to missing hostname validation.","url":"https://insights.sbomify.com/CVE-2021-22931/"}