{"answers":{"affected":"2 open source packages ship an affected version, including underscore. It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-23358 exists.","fix":"Upgrade underscore to 1.12.1 or later.","what":"CVE-2021-23358 is a low-severity code injection vulnerability in Debian Debian Linux, published on 29 Mar 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-23358 and fix it if it is affected.\n\nWhat it is: CVE-2021-23358 is a low-severity code injection vulnerability in Debian Debian Linux, published on 29 Mar 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-23358 exists.\n\nAffected packages and fixed versions:\n- underscore (npm): affected from 1.3.2; fixed in 1.12.1\n- underscore (npm): affected from 1.3.2; fixed in 1.12.1\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-23358/ (Markdown: https://insights.sbomify.com/CVE-2021-23358/index.md)","id":"CVE-2021-23358","markdown":"https://insights.sbomify.com/CVE-2021-23358/index.md","name":"CVE-2021-23358","record":{"aliases":["AZL-45222","CLSA-2026-1775003188","CLSA-2026-1775003190","DEBIAN-CVE-2021-23358","DLA-2613-1","DSA-4883-1","GHSA-cf4h-3jhx-xvhq","MGASA-2021-0269","OESA-2021-1174","ROOT-APP-NPM-CVE-2021-23358","UBUNTU-CVE-2021-23358","USN-4913-1","openSUSE-SU-2021:0601-1","openSUSE-SU-2024:11095-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript utility library","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary code via the template function in the Underscore.js library when unsanitized variable properties are passed as arguments.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"tenable.sc","vendor":"tenable"},{"product":"underscore","vendor":"underscorejs"}],"cvss":{"score":3.3,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"The package underscore from 1.13.0-0 and before 1.13.0-2, from 1.3.2 and before 1.12.1 are vulnerable to Arbitrary Code Injection via the template function, particularly when a variable property is passed as an argument as it is not sanitized.","ecosystems":["npm","openSUSE:Leap 15.2","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2023-02-25","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-02-25T19:12:13Z","kind":"github_poc","ref":"https://github.com/EkamSinghWalia/Detection-script-for-cve-2021-23358","stars":1,"title":"Detection script for cve-2021-23358"},{"date":"2024-07-04T14:55:10Z","kind":"github_poc","ref":"https://github.com/MehdiBoukhobza/SandBox_CVE-2021-23358","stars":1,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Arbitrary Code Injection","id":"CVE-2021-23358","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"code_injection","year":"2021"},"n_packages":4,"n_references":15,"next":{"headline":"Arbitrary Command Injection","id":"CVE-2021-23359"},"packages":[{"ecosystem":"npm","fixed":["1.12.1"],"introduced":["1.3.2"],"last_affected":[],"package":"underscore","purl":null,"source":"GHSA-cf4h-3jhx-xvhq"},{"ecosystem":"npm","fixed":["1.12.1"],"introduced":["1.3.2"],"last_affected":[],"package":"underscore","purl":"pkg:npm/underscore","source":"GHSA-cf4h-3jhx-xvhq"},{"ecosystem":"openSUSE:Leap 15.2","fixed":["1.13.1-lp152.4.3.1"],"introduced":["0"],"last_affected":[],"package":"nodejs-underscore","purl":"pkg:rpm/opensuse/nodejs-underscore\u0026distro=openSUSE%20Leap%2015.2","source":"openSUSE-SU-2021:0601-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.13.1-1.3"],"introduced":["0"],"last_affected":[],"package":"nodejs-underscore","purl":"pkg:rpm/opensuse/nodejs-underscore\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11095-1"}],"prev":{"headline":"Directory Traversal","id":"CVE-2021-23357"},"products":["underscore"],"published":"2021-03-29","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"openSUSE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via the template function in the Underscore.js library when unsanitized variable properties are passed as arguments.","url":"https://insights.sbomify.com/CVE-2021-23358/"}