CVE-2026-24771 Hono has a Cross-site Scripting vulnerability
An XSS vulnerability in the Hono framework's ErrorBoundary component allows attackers to execute arbitrary scripts in victims' browsers via untrusted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-24771?
CVE-2026-24771 is a medium-severity cross-site scripting vulnerability in honojs hono, published on 27 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.11.7, a Cross-Site Scripting (XSS) vulnerability exists in the `ErrorBoundary` component of the hono/jsx library. Under certain usage patterns, untrusted user-controlled strings may be rendered as raw HTML, allowing arbitrary script execution in the victim's browser. Version 4.11.7 patches the issue.
Weakness: CWE-79
Which versions are affected by CVE-2026-24771?
2 open source packages ship an affected version, including hono. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
hono npm | All versions | 4.11.7 |
hono npm | All versions | 4.11.7 |
Products include Hono Hono.
How do I fix CVE-2026-24771?
Upgrade hono to 4.11.7 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-24771 being exploited?
There is no known exploitation of CVE-2026-24771 in the wild and no public exploit code.
Other vulnerabilities in honojs hono
- CVE-2026-27700 Hono is Vulnerable to Authentication Bypass by IP Spoofing in AWS Lambda ALB conninfo
- CVE-2026-22817 JWT Algorithm Confusion via Unsafe Default (HS256) in Hono JWT Middleware Allows Token Forgery and Auth Bypass
- CVE-2026-22818 JWT algorithm confusion in Hono JWK Auth Middleware when JWK lacks "alg" (untrusted header.alg fallback)
- CVE-2025-62610 Hono Improperly Authorizes JWT Audience Validation
- CVE-2026-29045 Hono: Arbitrary file access via serveStatic vulnerability
Sources
Also known as GHSA-9r54-q6cx-xmh5, MINI-f84g-7xqr-gw6f, MINI-v49v-7cr5-xjvr.