๐Ÿ” CVE Alert

CVE-2026-16231

HIGH 8.1

hbs vulnerable to XSS via registerAsyncHelper output-escaping bypass

CVSS Score
8.1
EPSS Score
0.0%
EPSS Percentile
0th

hbs is an Express view engine that wraps Handlebars. Its registerAsyncHelper API bypasses Handlebars' automatic HTML escaping: an async helper returns an opaque placeholder during the first render pass, so the double-brace expression escapes only the placeholder, and after rendering hbs substitutes the placeholder with the raw callback return value without escaping it, across the cached, uncached, and layout render paths. An application that passes attacker-influenced data, for example user-supplied content from a database, into an async helper callback can therefore have arbitrary HTML and JavaScript injected into the server-rendered page, resulting in stored or reflected cross-site scripting. Versions 2.1.0 through 4.2.1 are affected, and the issue is fixed in 4.3.0, which HTML-escapes async helper output. Applications that intentionally emit raw HTML from an async helper can opt in explicitly with hbs.SafeString. Users should upgrade to 4.3.0.

CWE CWE-79
Vendor hbs
Product hbs
Published Aug 25, 2026
Stay Ahead of the Next One

Get instant alerts for hbs hbs

Be the first to know when new high vulnerabilities affecting hbs hbs are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

hbs / hbs
2.1.0 < 4.3.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/pillarjs/hbs/security/advisories/GHSA-rg36-rxv9-2m9q cna.openjsf.org: https://cna.openjsf.org/security-advisories.html

Credits

๐Ÿ” EQSTLab UlisesGascon bjohansebas