CVE-2026-33939Improper Check for Unusual or Exceptional Conditions in Handlebars

Severity
7.5HIGHNVD
EPSS
0.0%
top 84.86%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 27
Latest updateMar 28

Description

Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, when a Handlebars template contains decorator syntax referencing an unregistered decorator (e.g. `{{*n}}`), the compiled template calls `lookupProperty(decorators, "n")`, which returns `undefined`. The runtime then immediately invokes the result as a function, causing an unhandled `TypeError: ... is not a function` that crashes the Node.js process. Any application that compiles user-su

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages3 packages

NVDhandlebarsjs/handlebars4.0.04.7.9
npmhandlebarsjs/handlebars4.0.04.7.9
CVEListV5handlebars-lang/handlebars.js>= 4.0.0, < 4.7.9

Patches

🔴Vulnerability Details

4
GHSA
Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation2026-03-27
CVEList
Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation2026-03-27
OSV
Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation2026-03-27
OSV
CVE-2026-33939: Handlebars provides the power necessary to let users build semantic templates2026-03-27

📋Vendor Advisories

2
Red Hat
handlebars.js: Handlebars.js: Denial of Service via malformed decorator syntax in template compilation2026-03-27
Debian
CVE-2026-33939: node-handlebars - Handlebars provides the power necessary to let users build semantic templates. I...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-33939 Impact, Exploitability, and Mitigation Steps | Wiz

💬Community

2
Bugzilla
CVE-2026-33939 openbao: Handlebars.js: Denial of Service via malformed decorator syntax in template compilation [epel-all]2026-03-28
Bugzilla
CVE-2026-33939 openbao: Handlebars.js: Denial of Service via malformed decorator syntax in template compilation [fedora-all]2026-03-28