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

Published Jan 27, 2026
·
Updated

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

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
npm/hono<4.11.7
npm/hono<4.11.7
4.11.7
Hono Hono Node.js<4.11.7

Event History

Jan 27, 2026
CVE Published
via MITRE·07:41 PM
Data Sourced
via MITRE·07:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 28, 2026
Advisory Published
via GitHub·04:10 PM
Data Sourced
via GitHub·04:10 PM
DescriptionSeverityWeaknessAffected Software
Jul 24, 58068
Event
via FIRST·11:54 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-24771?

CVE-2026-24771 is a Cross-Site Scripting (XSS) vulnerability that can lead to unauthorized script execution in affected applications.

2

How do I fix CVE-2026-24771?

To fix CVE-2026-24771, upgrade the hono/jsx library to version 4.11.7 or later.

3

Which versions are affected by CVE-2026-24771?

CVE-2026-24771 affects versions of the hono/jsx library prior to 4.11.7.

4

What are the implications of CVE-2026-24771?

The implications of CVE-2026-24771 include the potential for attackers to execute arbitrary scripts in the context of a user's session.

5

Is CVE-2026-24771 exploitable in all use cases of hono?

CVE-2026-24771 is conditionally exploitable based on certain usage patterns in the ErrorBoundary component.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203