Skip to main content
VulnerabilityPublished

CVE-2026-106446: handlebars.js · Code Injection

Affects handlebars.jsSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
handlebars-langhandlebars.jsAffected
  • >=4.0.0 <4.7.10
Fixed in
  • 4.7.10

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

Community reviews

Loading reviews…