Skip to main content
← All vulnerabilities
CVE-2026-106445GHSA-P8WG-VRV2-V86F

Handlebars: JavaScript Injection via Own Property Check Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.7.10
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • handlebars-lang handlebars.js

    From 3.0.0 · fixed in 4.7.10

  • handlebarsnpm

    From 3.0.0 · fixed in 4.7.10

References 4

GitHub · handlebars-lang/handlebars.js