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

- Severity: Medium 5.9 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-09-11T09:50:27.117Z
- Modified: 2026-09-16T19:40:00.317Z
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- hbs hbs: from 4.3.0 before 4.3.1 (not affected: 4.3.1)

## References

- <https://github.com/pillarjs/hbs/security/advisories/GHSA-3c55-w9jx-p5jr>
- <https://cna.openjsf.org/security-advisories.html>

## Sources

- CVE List: [CVE-2026-87123](https://www.cve.org/CVERecord?id=CVE-2026-87123), CVE Terms of Use, modified 2026-09-11
- NVD: [CVE-2026-87123](https://nvd.nist.gov/vuln/detail/CVE-2026-87123), Public domain, modified 2026-09-16

---

Page: https://cve.day/CVE-2026-87123 · Whole record: https://cve.day/CVE-2026-87123.json · Rebuilt by cve.day 2026-11-25T22:59:37.942Z
