{"answers":{"affected":"2 open source packages ship an affected version, including squirrelly. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-40453 in the wild and no public exploit code.","fix":"Upgrade squirrelly to 9.1.0 or later.","what":"CVE-2024-40453 is a critical code injection vulnerability in n/a, published on 21 Aug 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-40453 and fix it if it is affected.\n\nWhat it is: CVE-2024-40453 is a critical code injection vulnerability in n/a, published on 21 Aug 2024. 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-2024-40453 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- squirrelly (npm): affected from 9.0.0; fixed in 9.1.0\n- squirrelly (npm): affected from 9.0.0; fixed in 9.1.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-40453/ (Markdown: https://insights.sbomify.com/CVE-2024-40453/index.md)","id":"CVE-2024-40453","markdown":"https://insights.sbomify.com/CVE-2024-40453/index.md","name":"CVE-2024-40453","record":{"aliases":["GHSA-w5pw-gmcw-rfc8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript template engine","requires_auth":"none","summary":"Attackers can execute arbitrary code via the options.varName parameter in the squirrelly JavaScript template engine library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"squirrelly","vendor":"squirrelly"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","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-94","name":"Improper Control of Generation of Code"}],"description":"squirrellyjs squirrelly v9.0.0 and fixed in v.9.0.1 was discovered to contain a code injection vulnerability via the component options.varName.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-06-08","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-06-08T03:49:49Z","kind":"github_poc","ref":"https://github.com/BwithE/CVE-2024-40453","stars":0,"title":"CVE-2024-40453 - Squirrelly v9.0.0 RCE. Poc"},{"date":"2026-10-05T16:02:00Z","kind":"github_poc","ref":"https://github.com/AC8999/CVE-2024-40453","stars":0,"title":"Python POC for CVE-2024-40453. "}],"tier":"poc_unverified"},"has_fix":true,"headline":"squirrelly Code Injection vulnerability","id":"CVE-2024-40453","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Path traversal in n/a","id":"CVE-2024-40455"},"packages":[{"ecosystem":"npm","fixed":["9.1.0"],"introduced":["9.0.0"],"last_affected":[],"package":"squirrelly","purl":null,"source":"GHSA-w5pw-gmcw-rfc8"},{"ecosystem":"npm","fixed":["9.1.0"],"introduced":["9.0.0"],"last_affected":[],"package":"squirrelly","purl":"pkg:npm/squirrelly","source":"GHSA-w5pw-gmcw-rfc8"}],"prev":{"headline":"An issue in forkosh Mime Tex before v.1.77 allows an attacker to execute arbitrary code via a crafted script","id":"CVE-2024-40446"},"products":["n/a"],"published":"2024-08-21","related":[{"cvss_score":8,"headline":"Remote code execution in squirrelly","id":"CVE-2021-32819","kev_date_added":null,"published":"2021-05-14"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-23","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via the options.varName parameter in the squirrelly JavaScript template engine library.","url":"https://insights.sbomify.com/CVE-2024-40453/"}