Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. handlebars
  4. ›
  5. CVE-2026-33939

CVE-2026-33939: Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation

March 27, 2026 (updated March 30, 2026)

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.

References

  • github.com/advisories/GHSA-9cx6-37pm-9jff
  • github.com/handlebars-lang/handlebars.js
  • github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2
  • github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9
  • github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-9cx6-37pm-9jff
  • nvd.nist.gov/vuln/detail/CVE-2026-33939

Code Behaviors & Features

Detect and mitigate CVE-2026-33939 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.7.9

Fixed versions

  • 4.7.9

Solution

Upgrade to version 4.7.9 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

npm/handlebars/CVE-2026-33939.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:24 +0000.