{"answers":{"affected":"2 open source packages ship an affected version, including handlebars.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-106446 exists.","fix":"Upgrade handlebars to 4.7.10 or later.","what":"CVE-2026-106446 is a critical code injection vulnerability in handlebars-lang handlebars.js, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-106446 and fix it if it is affected.\n\nWhat it is: CVE-2026-106446 is a critical code injection vulnerability in handlebars-lang handlebars.js, published on 6 Oct 2026. 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-2026-106446 exists.\n\nAffected packages and fixed versions:\n- handlebars (npm): affected from 4.0.0; fixed in 4.7.10\n- handlebars (npm): affected from 4.0.0; fixed in 4.7.10\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-2026-106446/ (Markdown: https://insights.sbomify.com/CVE-2026-106446/index.md)","id":"CVE-2026-106446","markdown":"https://insights.sbomify.com/CVE-2026-106446/index.md","name":"CVE-2026-106446","record":{"aliases":["CLEANSTART-2026-VO75724","CLSA-2026-1791795528","CLSA-2026-1791814907","DEBIAN-CVE-2026-106446","ECHO-c5bc-f0e3-77a6","GHSA-8r5x-fm3f-whwj","MINI-23mm-wqrp-2788","MINI-2jfg-wqwx-4jfr","MINI-34gr-r6fx-7m8g","MINI-7c2j-vf28-hg55","MINI-cj3g-r3xf-jm9h","MINI-gj23-53r6-mr8h","MINI-hjrg-98v4-jqwp","MINI-hpr7-fgj5-5qf4","MINI-vrfh-pghh-8pf4","MINI-vvj7-rxrv-h3xg","MINI-xqq7-x5c5-wm83","ROOT-APP-NPM-CVE-2026-106446","UBUNTU-CVE-2026-106446"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript templating library","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript in the server process by supplying malicious AST objects to Handlebars compile functions.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","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"},{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"description":"Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.compile() and Handlebars.precompile() accept pre-parsed AST objects while validating only selected PathExpression, NumberLiteral, and BooleanLiteral values. This issue bypasses the AST validation introduced in version 4.7.9 for CVE-2026-33937. An attacker who can supply an object instead of a template string can place JavaScript expressions in unchecked values such as Program.blockParams.length, a non-PathExpression parameter depth, a non-string StringLiteral.value, or a non-string PathExpression.original. The compiler emits those values into generated JavaScript, causing code execution in the server process when compile output renders or wherever precompile output is loaded. Applications that pass only template strings are not affected. This issue is fixed in version 4.7.10.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)","id":"CVE-2026-106446","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"StableLib: Stack exhaustion denial of service via deeply nested CBOR arrays, maps, or tags","id":"CVE-2026-106447"},"packages":[{"ecosystem":"npm","fixed":["4.7.10"],"introduced":["4.0.0"],"last_affected":[],"package":"handlebars","purl":null,"source":"GHSA-8r5x-fm3f-whwj"},{"ecosystem":"npm","fixed":["4.7.10"],"introduced":["4.0.0"],"last_affected":[],"package":"handlebars","purl":"pkg:npm/handlebars","source":"GHSA-8r5x-fm3f-whwj"}],"prev":{"headline":"Handlebars: JavaScript Injection via Own Property Check Bypass","id":"CVE-2026-106445"},"products":["handlebars.js"],"published":"2026-10-06","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-07","vendors":["handlebars-lang"]},"summary":"Attackers can execute arbitrary JavaScript in the server process by supplying malicious AST objects to Handlebars compile functions.","url":"https://insights.sbomify.com/CVE-2026-106446/"}