CVE-2026-106446: handlebars.js · Code Injection
Affects handlebars.jsSource CVE Database V5
Not known to be exploited · CVSS 9.8 Critical : upgrade to 4.7.10 as a priority.
Data as of 20 Nov 2026, 17:34 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 57% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.7.10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade handlebars.js to 4.7.10.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| handlebars-langhandlebars.js | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Meanwhile, applications should validate that input to Handlebars.compile() and Handlebars.precompile() is always a string and never a parsed object. Reject or sanitize any non-string input before compilation. Alternatively, use the Handlebars runtime-only build on the server to avoid compiling untrusted templates. These mitigations prevent untrusted AST objects from being processed and executing arbitrary code.
Description
CVE-2026-106446 is a critical code injection vulnerability in handlebars.js versions 4.0.0 up to but not including 4.7.10. The vulnerability arises because Handlebars.compile() and Handlebars.precompile() accept pre-parsed AST objects without fully validating all node values, allowing untrusted input objects to inject arbitrary JavaScript code. This can lead to remote code execution on the server or malicious code execution in client environments where precompiled templates are used. Applications passing untrusted objects instead of strings to these functions are affected. The vulnerability has a CVSS score of 9.8, indicating critical severity.
References
- github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwj (opens in a new tab)
- github.com/handlebars-lang/handlebars.js/pull/2185 (opens in a new tab)
- github.com/handlebars-lang/handlebars.js/commit/703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2 (opens in a new tab)
- github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10 (opens in a new tab)