CVE-2026-33937: Vulnerability in Handlebarsjs Handlebars
Critical. Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, Handlebars.compile() accepts a pre-parsed AST object in addition to a template string. The value field of a NumberLiteral AST node is emitted directly into the generated JavaScript without quoting or sanitization. An attacker who can supply a crafted AST to compile() can therefore inject and execute...
npm, CWE-94, CWE-843
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-2w6w-674q-4c4q
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-94, CWE-843
- Published
- 27 Mar 2026
- Last change
- 26 Oct 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Handlebarsjs Handlebars From 4.0.0 before 4.7.9. Fixed in 4.7.9
Affected packages
Vulnerable version ranges and fixed releases
- handlebars npm, Affected from 4.0.0 through 4.7.8. Fixed in 4.7.9
Advisories
Vendor and security advisories
- github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-2w6w-674q-4c4q
- access.redhat.com/errata/RHSA-2026:10175
- access.redhat.com/errata/RHSA-2026:34342
- access.redhat.com/security/cve/CVE-2026-33937
Patches and fixes
Updates, commits and release notes
- github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2
- github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9
Related
- Handlebars vulnerabilities Recent advisories, watch this product