CVE-2026-87123

published 11 Sep 2026 · updated 11 Sep 2026

hbs vulnerable to Denial of Service via unhandled exception in async helper output escaping

5.9MediumCVSS 5.9EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 4.3.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
hbs>=4.3.0 <4.3.14.3.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-87123 severity on Zeptric[![CVE-2026-87123](https://zeptric.io/badge/cve/CVE-2026-87123.svg)](https://zeptric.io/cve/CVE-2026-87123)