CVE-2026-87123
published medium CVSS 3.1 · 5.9hbs vulnerable to Denial of Service via unhandled exception in async helper output escaping
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| hbs | — | hbs4.3.0 to < 4.3.1 (affected · semver) · 4.3.1 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hbs | hbs | 4.3.0 to < 4.3.1 (affected · semver)4.3.1 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-248 CWE-248: Uncaught Exception
References
2Provider assertions
2openjs · cna
hbs vulnerable to Denial of Service via unhandled exception in async helper output escaping
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e821540a5a36fab45d2d698289a705123536c005567f98cd34157fcad80de5ac
- Ingested
- 23 Sep 2026, 09:37:28 UTC
- Source record
- Official CVE record