hono/jsx
cpe:2.3:a:hono:hono:*:*:*:*:node.js:*:*
- < 4.11.7
A Cross-Site Scripting (XSS) vulnerability has been identified in the Hono web application framework, specifically in versions prior to 4.11.7. The issue resides in the 'ErrorBoundary' component of the hono/jsx library, where untrusted user-controlled strings can be rendered as raw HTML. This flaw allows for the execution of arbitrary scripts in the browser of the victim. The vulnerability arises because the component improperly handles user input, bypassing the framework's default HTML escaping, which could lead to the execution of malicious scripts.
Exploitation of this vulnerability allows for reflected Cross-Site Scripting (XSS), where an attacker can execute arbitrary JavaScript in the context of the victim's browser. This could result in session hijacking, unauthorized actions on behalf of the user, or data theft.
To reproduce this vulnerability, render an 'ErrorBoundary' component with untrusted user input as its children, or provide user-controlled strings through the 'fallbackRender' prop. The component will process this input as raw HTML, leading to the execution of any embedded scripts.
Users should update to Hono version 4.11.7 or later, where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.