Handlebars-lang handlebars.js
Handlebars: JavaScript Injection via Own Property Check Bypass
Handlebars provides the power necessary to let users build semantic templates. From 3.0.0 until 4.7.10, Handlebars lookupProperty returns Function.prototype.constructor before applying the prototype-access deny list because constructor is an own property of Function.prototype. When an attacker can render a controlled template with allowProtoMethodsByDefault enabled and an accessible function in the template context, the template can traverse from that function through its prototype to Function.prototype and then obtain the Function constructor through the own-property bypass. This permits attacker-controlled JavaScript to execute with the server application's privileges. This issue is fixed in version 4.7.10.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.0.0, < 4.7.10
Fixed in 4.7.10
Mitigation
Upgrade handlebars.js to 4.7.10 or later.
References
- Vendor advisory github.com/handlebars-lang/handlebars.js/secur…
- Patch github.com/handlebars-lang/handlebars.js/pull/…
- Patch github.com/handlebars-lang/handlebars.js/commi…
1 more
- Release notes github.com/handlebars-lang/handlebars.js/relea…
Timeline
Days relative to CVE publicationFirst public PoC 3.5 days after publication; not in CISA KEV. First PoC: murrez/CVE-2026-106445 (created 10 Oct 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| murrez/CVE-2026-106445 | 10 Oct 2026 +3.5 d | 2 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.