Cyber Resilience

CVE-2026-33939

Handlebarsjs Handlebars 4.0.0 – 4.7.9

Public PoC
Published
27 March 2026
Modified
15 July 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0062 47th percentile
Risk Priority 58 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-33939 is a high-severity Improper Check for Unusual or Exceptional Conditions (CWE-754) vulnerability in Handlebarsjs Handlebars. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Service Stop (T1489); ranked at the 47th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-33939 is a denial-of-service vulnerability in Handlebars.js, a templating engine for building semantic templates, affecting versions 4.0.0 through 4.7.8. The issue arises when a template contains decorator syntax referencing an unregistered decorator, such as `{{*n}}`. During compilation, the engine calls `lookupProperty(decorators, "n")`, which returns `undefined`, and then attempts to invoke it as a function. This triggers an unhandled `TypeError: ... is not a function`, crashing the Node.js process. Applications that compile user-supplied templates without wrapping the operation in a `try/catch` block are vulnerable.

The vulnerability has a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and is associated with CWE-754 (Improper Check for Unusual or Exceptional Conditions). A remote unauthenticated attacker can exploit it by submitting a malicious template containing invalid decorator syntax to an endpoint that dynamically compiles and renders Handlebars templates. A single request is sufficient to crash the Node.js process, causing a denial of service.

The issue is fixed in Handlebars version 4.7.9. Advisories recommend upgrading to the patched version. Workarounds include wrapping template compilation and rendering in `try/catch` blocks, validating and rejecting user-supplied templates containing decorator syntax (`{{*...}}`) if decorators are not used, or adopting a pre-compilation workflow where templates are compiled at build time and only pre-compiled templates are served at runtime, avoiding `compile()` calls during requests. Relevant resources include the fix commit, release notes for v4.7.9, and the GitHub security advisory GHSA-9cx6-37pm-9jff.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1489 Service Stop Impact
Adversaries may stop or disable services on a system to render those services unavailable to legitimate users.
T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-33937Same product: Handlebarsjs Handlebars
CVE-2026-33940Same product: Handlebarsjs Handlebars
CVE-2026-33938Same product: Handlebarsjs Handlebars
CVE-2026-33916Same product: Handlebarsjs Handlebars
CVE-2026-33941Same product: Handlebarsjs Handlebars
CVE-2023-22290Shared CWE-248, CWE-754
CVE-2025-20637Shared CWE-248, CWE-754
CVE-2026-40094Shared CWE-754
CVE-2023-4583Shared CWE-754
CVE-2024-4367Shared CWE-754

Affected Assets

handlebarsjs
handlebars
4.0.0 — 4.7.9

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 7 hardening rules · 2 OS baselines
Validate
Prove the fix (OWASP ASVS)

—

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation explicitly exercises unusual conditions to find missing or incorrect checks.

Input validation directly requires checking for unexpected or malformed conditions before they propagate.

Security engineering principles include structured handling of edge cases and exceptions during design.

Fail-in-known-state reduces the impact when an uncaught exception occurs by preserving a safe condition.

Error handling requirements force structured catching and response to exceptions instead of allowing them to propagate uncaught.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure development practices directly require proper checks and handling for exceptional conditions throughout the SDLC.

DE.CM-09 partial match
prevents

Runtime monitoring of software and environments can detect adverse events triggered by unhandled exceptional conditions.

PR.PS-04 partial match
prevents

Generating logs of exceptions and errors enables detection of improper handling of unusual conditions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development and acceptance verifies handling of error and exceptional conditions.

A.8.15 Logging partial match
finds

Logging can record unhandled exceptions but does not prevent the weakness itself.

finds

Monitoring may detect symptoms of unhandled conditions but does not eliminate the root weakness.

prevents

Secure development life cycle mandates exception handling and input validation that directly prevent missing checks for unusual conditions.

prevents

Application security requirements explicitly call for handling of exceptional conditions and error paths.

prevents

Secure system architecture and engineering principles require robust error and exception handling mechanisms.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over `controls_xwalks` (authoritative rows only; rows rated `none` are excluded).

Oracle Linux 8 (2 rules)
  • V-248574 YUM must be configured to prevent the installation of patches, service packs, device drivers, or OL 8 system components that have not been digitally signed using a certificate that is recognized and approved by the organization. prevents CWE-754
  • V-248575 OL 8 must prevent the installation of software, patches, service packs, device drivers, or operating system components of local packages without verification they have been digitally signed using a certificate that is issued by a Certificate Authority (CA) that is recognized and approved by the organization. prevents CWE-754
Oracle Linux 9 (1 rule)
  • V-271452 OL 9 must use a Linux Security Module configured to enforce limits on system services. prevents CWE-754

References