CVE-2026-87123: hbs vulnerable to Denial of Service via unhandled exception in async helper output escaping

Published Sep 11, 2026
·
Updated

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 Software

1 affected component
npm/hbs=4.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade hbs to a version that resolves this vulnerability.

    Fixed in 4.3.1

Event History

Sep 11, 2026
CVE Published
via MITRE·09:50 AM
Data Sourced
via MITRE·09:50 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to remote exploitation?

Applications using hbs 4.3.0 are exposed when they register an async helper with registerAsyncHelper and that helper can resolve to an externally influenced object, such as parsed JSON. The object must have a truthy toHTML property that is not callable.

2

What does an attacker need to trigger the denial of service?

An attacker must be able to cause a relevant async helper to resolve to the malformed object during rendering. No authentication or user interaction is required according to the supplied vector, but exploitation has high complexity because the required helper behavior and object shape must be reached.

3

Are earlier hbs releases affected?

No. Only hbs 4.3.0 is affected; earlier versions do not escape async helper values and therefore do not reach this throwing behavior.

4

What is the recommended remediation?

Upgrade hbs to version 4.3.1 or later. No alternative mitigation is provided in the available information.

5

How can teams identify potentially affected applications?

Check for hbs version 4.3.0 and uses of registerAsyncHelper. Prioritize helpers that process externally influenced values and may return objects with a truthy, non-function toHTML property, as these can cause an uncaught TypeError and terminate the Node.js process.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203