Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNews
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
2327 articles · 106041 vulns · 38/41 feeds (7d)
← Back to list
7.5
CVE-2026-33939EXPLOITEDPATCHED
handlebars-lang · handlebars.js

Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation

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-supplied templates without wrapping the call in a `try/catch` is vulnerable to a single-request Denial of Service. Version 4.7.9 fixes the issue. Some workarounds are available. Wrap compilation and rendering in `try/catch`. Validate template input before passing it to `compile()`; reject templates containing decorator syntax (`{{*...}}`) if decorators are not used in your application. Use the pre-compilation workflow; compile templates at build time and serve only pre-compiled templates; do not call `compile()` at request time.

Affected Products

VendorProductVersions
handlebars-langhandlebars.jsnpm/handlebars: >= 4.0.0, <= 4.7.8

References

  • https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-9cx6-37pm-9jff(x_refsource_CONFIRM)
  • https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2(x_refsource_MISC)
  • https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9(x_refsource_MISC)

Related News (3 articles)

Tier A
Microsoft MSRC4h ago
CVE-2026-33939 Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation
→ No new info (linked only)
Tier C
VulDB3d ago
CVE-2026-33939 | Handlebars up to 4.7.8 Template Call compile unusual condition (GHSA-9cx6-37pm-9jff)
→ No new info (linked only)
Tier C
VulDB3d ago
CVE-2026-33939 | Handlebars up to 4.7.8 Template Call compile unusual condition (GHSA-9cx6-37pm-9jff)
→ No new info (linked only)
CVSS 3.17.5 HIGH
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA KEV❌ No
Actively exploited✅ Yes
Patch availablehandlebars@4.7.9
CWECWE-754
PublishedMar 27, 2026
Last enriched3d agov2
Tags
GHSA-9cx6-37pm-9jffnpm
Trending Score76
Source articles3
Independent2
Info Completeness9/14
Missing: epss, kev, exploit, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

CRITICALCVE-2026-33938EXP
Handlebars.js has JavaScript Injection via AST Type Confusion by tampering @partial-block
Trending: 61
HIGHCVE-2026-33940
Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial
Trending: 52
MEDIUMCVE-2026-33916
Handlebars.js has Prototype Pollution Leading to XSS through Partial Template Injection
Trending: 42
CRITICALCVE-2026-33937
Handlebars.js has JavaScript Injection via AST Type Confusion
Trending: 42
HIGHCVE-2026-33941
Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options
Trending: 39

Pin to Dashboard

Verification

State: unverified
Confidence: 0%

Vulnerability Timeline

CVE Published
Mar 27, 2026
Discovered by ZDM
Mar 27, 2026
Updated: description, activelyExploited
Mar 27, 2026
Actively Exploited
Mar 30, 2026
Patch Available
Mar 30, 2026

Version History

v2
Last enriched 3d ago
v2Tier C3d ago

Updated description with new details about the vulnerability and changed exploit availability to false.

descriptionactivelyExploited
via VulDB
v13d ago

Initial creation