CVE-2026-16231
Last modified
CVE-2026-16231 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hbs Project | Hbs | >= 2.1.0, < 4.3.0 |
References
- https://cna.openjsf.org/security-advisories.htmlVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-16231?
How severe is CVE-2026-16231?
How do I fix CVE-2026-16231?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-16226A weakness has been identified in SourceCodester Pizzafy Eco…5.1
- CVE-2026-16227A security vulnerability has been detected in SourceCodester…7.3
- CVE-2026-16228A vulnerability was detected in SourceCodester Class and Exa…7.3
- CVE-2026-16229A flaw has been found in itsourcecode Courier Management Sys…4.3
- CVE-2026-1623A weakness has been identified in Totolink A7000R 4.1cu.4154…6.3
- CVE-2026-16230The Formidable Digital Signatures plugin for WordPress is vu…9.8
- CVE-2026-16232An authentication bypass vulnerability in the Check Point Sm…9.8
- CVE-2026-16233There is a memory corruption vulnerability recently discover…7.8
- CVE-2026-16234There is a memory corruption vulnerability recently discover…7.8
- CVE-2026-16235Crypt::Password versions through 0.28 for Perl generate inse…9.8
- CVE-2026-16236The Realtyna Organic IDX plugin for WordPress is vulnerable …8.8
- CVE-2026-16238Type confusion in PostgreSQL pg_restore_attribute_stats() al…8.8
Are you affected by CVE-2026-16231?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
