Skip to main content

hbs Express Engine EUVDEUVD-2026-76029

| CVE-2026-87123 MEDIUM
Uncaught Exception (CWE-248)
2026-09-11 ce714d77-add3-4f53-aff5-83d477b104bb
5.9
CVSS 3.1 · Vendor: ce714d77-add3-4f53-aff5-83d477b104bb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted HTTP request with shaped JSON body
  2. Delivery
    Async Handlebars helper resolves to attacker-controlled object
  3. Exploit
    Handlebars escapeExpression calls non-callable toHTML property
  4. Execution
    TypeError thrown outside render try/catch
  5. Persist
    Uncaught exception terminates Node.js process
  6. Impact
    Service unavailable

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the application must be running exactly hbs 4.3.0 - no other version is affected; (2) at least one Handlebars helper must be registered using registerAsyncHelper rather than a synchronous helper; and (3) that async helper must resolve to a value that is externally influenced (e.g., parsed from request body or query parameters) and carries a truthy but non-callable toHTML property. Applications that use only synchronous helpers, or that sanitise/validate resolved values before returning them, are not exploitable. The denial-of-service impact is bounded to the Node.js process: clustered or process-manager deployments (PM2, Kubernetes) will restart the worker, limiting outage duration.

Impact

The CVSS 3.1 vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H yields a base score of 5.9, which reflects an exclusively availability impact with high attack complexity. The AC:H assignment is well-justified: exploitation requires that (a) the application uses registerAsyncHelper, (b) the helper resolves to an externally-influenced object, and (c) that object carries a truthy but non-callable toHTML property - a narrow combination that rules out casual mass-exploitation. EPSS data was not provided, and the CVE is not in CISA KEV, suggesting no observed active exploitation at time of analysis. However, the impact when triggered is process termination, which in a single-process Node.js deployment means complete service outage; in clustered or PM2-managed deployments the impact is reduced to a worker restart. Given the highly specific preconditions and the narrow version range (4.3.0 only), real-world risk is moderate despite the process-crash impact.

Exploit ScenarioDerived

An attacker sends an HTTP request to an Express application running hbs 4.3.0 that causes an async Handlebars helper to resolve with attacker-shaped JSON - for instance, a body containing {"toHTML": true} that is parsed and returned directly by the helper. Handlebars calls toHTML() on the boolean true, throws a TypeError on the next event-loop tick, and Node.js terminates the process. The result is an immediate, complete denial of service with no response returned to any concurrent requests.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 11, 2026

Uncaught TypeError in hbs 4.3.0 crashes the Node.js process when an async Handlebars helper resolves to an object with a truthy but non-callable toHTML property. Handlebars' escapeExpression unconditionally invokes toHTML() on any value that exposes it; because async helper substitution executes on a later event-loop tick, the resulting TypeError falls outside the render function's try/catch and becomes a fatal uncaught exception, terminating the entire process without sending a response. The flaw is remotely triggerable when the async helper's resolved value is influenced by attacker-controlled input such as parsed JSON. No public exploit code has been identified at time of analysis, and the issue is fixed in hbs 4.3.1.

RemediationAI

Upgrade to hbs 4.3.1 or later, which is the vendor-released patch. Because only 4.3.0 is affected, deployments running 4.2.x or any earlier release are not vulnerable and do not need to act. If an immediate upgrade is not possible, a short-term workaround is to avoid registering async helpers that resolve to externally-supplied objects without first sanitising the resolved value to ensure toHTML is absent or callable; wrapping the resolved value in a plain scalar or a proper Handlebars SafeString before returning it prevents the TypeError. Applications that do not use registerAsyncHelper at all are not affected by this path regardless of version.

Affected VersionsENISA

hbs 4.3.0 <4.3.1

Affected Packages

euvd hbs fix: 4.3.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

hbs is an npm package that wraps Handlebars as an Express view engine. Handlebars' escapeExpression helper applies HTML-escape logic and, as a convenience, calls .toHTML() on any value whose toHTML property is truthy, assuming it is a safe-string wrapper. Async helpers registered via registerAsyncHelper execute their resolution callback on a subsequent event-loop tick; any exception thrown at that point is outside the synchronous try/catch that guards the render pipeline, making it an uncaught process-level exception under Node.js. CWE-248 (Uncaught Exception) captures this root cause precisely. The vulnerable behaviour was introduced specifically in 4.3.0 as a side-effect of the patch for CVE-2026-16231, which added escaping for async helper output; prior versions never escaped async values and are therefore unaffected.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (ce714d77-add3-4f53-aff5-83d477b104bb) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

Network reachable but AC:H due to narrow preconditions (registerAsyncHelper plus externally-shaped object with truthy non-callable toHTML); pure availability impact only.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (ce714d77-add3-4f53-aff5-83d477b104bb).

CVSS VectorVendor: ce714d77-add3-4f53-aff5-83d477b104bb

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Sep 11, 2026 - 11:02 EUVD

DescriptionCVE.org

hbs is an Express view engine wrapper for Handlebars. Version 4.3.0 can crash the Node.js process during output escaping when an async helper, registered with registerAsyncHelper, resolves to an object whose toHTML property is truthy but not callable. Handlebars escapeExpression calls the toHTML method on any value that has a truthy toHTML, so such a value throws a TypeError, and because the async substitution runs on a later tick outside the render function's try/catch, the throw is an uncaught exception that terminates the process without sending a response. Only version 4.3.0 is affected, since the throwing escape was introduced by the fix for CVE-2026-16231 and earlier versions do not escape async helper values. It can be triggered remotely when an async helper resolves to an externally influenced object such as parsed JSON. The issue is fixed in hbs 4.3.1, and users should upgrade to hbs 4.3.1 or later.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular Express.js Handlebars view engine on npm
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy