{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-106446","published":"2026-10-06T20:17:26.430000Z","last_modified":"2026-10-07T19:17:32.293000Z","status":"Awaiting Analysis","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-94","CWE-843"],"cpes":[],"cpes_truncated":false,"vendors":["handlebars-lang"],"products":["handlebars-lang/handlebars.js"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-8r5x-fm3f-whwj","ecosystem":"npm","name":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"introduced":"4.0.0","fixed":"4.7.10"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2026-106446/","html_en":"/en/cve/CVE-2026-106446/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-106446","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-106446"},"untrusted":{"vendor_name":"handlebars-lang","product_name":"handlebars.js","desc_en":"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.","affected":[{"untrusted_vendor":"handlebars-lang","untrusted_product":"handlebars.js","versions":[]}],"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"5690c38c3e4a9ec58cd44e7b3607049b","generated":"2026-11-26T23:25:41.182681Z","es":{"untrusted_title":"Ejecución remota de código en Handlebars.js por validación insuficiente de AST","untrusted_summary":"Handlebars.js versiones 4.0.0 a 4.7.9 no validan correctamente objetos AST pre-parseados en las funciones compile() y precompile(), permitiendo a un atacante inyectar expresiones JavaScript en valores no verificados. Un atacante que pueda suministrar un objeto AST malformado en lugar de una cadena de plantilla puede lograr ejecución de código en el proceso del servidor cuando se renderiza o carga la salida compilada."},"en":{"untrusted_title":"Remote code execution in Handlebars.js due to insufficient AST validation","untrusted_summary":"Handlebars.js versions 4.0.0 through 4.7.9 fail to properly validate pre-parsed AST objects in compile() and precompile() functions, allowing an attacker to inject JavaScript expressions into unchecked values. An attacker who can supply a malformed AST object instead of a template string can achieve code execution in the server process when the compiled output is rendered or the precompiled output is loaded."},"remediation":{"status":"fix","fixed_versions":["4.7.10"],"untrusted_action_es":"Actualiza handlebars a versión 4.7.10 o superior. Asegúrate de que tu aplicación solo pase cadenas de plantilla a compile() y precompile(), nunca objetos AST de fuentes no confiables.","untrusted_action_en":"Update handlebars to version 4.7.10 or later. Ensure your application only passes template strings to compile() and precompile(), never AST objects from untrusted sources.","vendor_url":"https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10"},"reviewed":false},"references":[{"url":"https://github.com/handlebars-lang/handlebars.js/commit/703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2","tags":[]},{"url":"https://github.com/handlebars-lang/handlebars.js/pull/2185","tags":[]},{"url":"https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10","tags":[]},{"url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwj","tags":[]}]}}