Hono has a Cross-site Scripting vulnerability
cve-program · CVE-2026-24771
PublishedHono 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.
Read the publisher's advisoryeuvd · EUVD-2026-4752
PublishedHono 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.
Read the publisher's advisorynvd · CVE-2026-24771
PublishedHono 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.
Read the publisher's advisoryosv · GHSA-9r54-q6cx-xmh5
Published## Summary 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. ## Details The issue is in the `ErrorBoundary` component (`src/jsx/components.ts`). `ErrorBoundary` previously forced certain rendered output paths to be treated as raw HTML, bypassing the library's default escaping behavior. This could result in unescaped rendering when developers pass user-controlled strings directly as children, or when fallbackRender returns user-controlled strings (for example, reflecting error messages that contain attacker input). This vulnerability is only exploitable when an application renders untrusted user input within `ErrorBoundary` without appropriate escaping or sanitization. ## Impact Successful exploitation may allow attackers to execute arbitrary JavaScript in the victim’s browser (reflected XSS). Depending on the application context, this can lead to actions such as session compromise, data exfiltration, or performing unauthorized actions as the victim. ## Affected Components * hono/jsx: `ErrorBoundary` component
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-24771 · CVE overview and exploitation status
cve-program · CVE-2026-24771
- https://github.com/honojs/hono/security/advisories/GHSA-9r54-q6cx-xmh5
- https://github.com/honojs/hono/commit/2cf60046d730df9fd0aba85178f3ecfe8212d990
euvd · EUVD-2026-4752
- https://github.com/honojs/hono/security/advisories/GHSA-9r54-q6cx-xmh5
- https://github.com/honojs/hono/commit/2cf60046d730df9fd0aba85178f3ecfe8212d990
nvd · CVE-2026-24771
- https://github.com/honojs/hono/commit/2cf60046d730df9fd0aba85178f3ecfe8212d990
- https://github.com/honojs/hono/security/advisories/GHSA-9r54-q6cx-xmh5