CVE-2026-24771 Hono has a Cross-site Scripting vulnerability

Medium 4.7 Published Updated

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.

PackageAffectedFixed in
hono npmAll versions4.11.7
hono npmAll versions4.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.

Sources

Also known as GHSA-9r54-q6cx-xmh5, MINI-f84g-7xqr-gw6f, MINI-v49v-7cr5-xjvr.

Is CVE-2026-24771 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free