Jan 29, 2026·5 min read·57 visits
Hono's `ErrorBoundary` component was manually marking its child content as 'raw' (safe) HTML. This allowed attackers to inject malicious scripts if user input was rendered inside the boundary. Fixed in v4.11.7 by using standard JSX Fragments.
In a twist of irony, the component designed to handle crashes in the Hono framework became a vector for crashes of a different kind. CVE-2026-24771 reveals how the `ErrorBoundary` component in Hono's JSX middleware bypassed the framework's own XSS protections, turning harmless error states into dangerous injection vectors.
We all love an ErrorBoundary. It's the digital equivalent of an airbag—there to catch you when your code inevitably hits a wall. In the React ecosystem and its spiritual successors like Hono, these components are supposed to be inert wrappers that only wake up when something goes boom.
But in hono/jsx, the airbag was packed with shrapnel. The ErrorBoundary component wasn't just catching errors; it was aggressively interfering with the rendering pipeline. Instead of letting the JSX engine do its job (which includes sanitizing untrusted input), the component took a shortcut that effectively disabled the framework's immune system.
This vulnerability is a classic reminder that "helper" code often bypasses the strict security controls applied to the core logic. While developers were busy sanitizing their inputs elsewhere, this component was quietly whispering to the renderer: "Don't worry about this data, I've checked it. It's totally safe." Spoiler alert: It wasn't.
The root of the issue lies in how Hono handled the rendering of children within the ErrorBoundary. In a typical JSX environment, if you try to render a string like <script>alert(1)</script>, the engine escapes the angle brackets to < and >. This is XSS Defense 101.
However, the ErrorBoundary implementation in versions prior to 4.11.7 decided to go rogue. Instead of passing the children down the pipeline as nodes, it manually converted them to strings, concatenated them, and then—here is the fatal flaw—wrapped the entire blob in a raw() function call.
In Hono, raw() is the magic word that tells the framework, "This string is already safe HTML. Do not escape it." By applying this to the entire output of the component, the developers inadvertently authorized any malicious payload contained within the children to execute in the browser. It’s the equivalent of checking IDs at the club entrance but letting anyone with a "VIP" sticker walk in with a flamethrower—and then slapping a "VIP" sticker on everyone who walks through the door.
Let's look at the crime scene in src/jsx/components.ts. The code tries to manage asynchronous children (Promises) and synchronous children together. In doing so, it forces a conversion to string and then bypasses safety checks.
The Vulnerable Code (Pre-4.11.7):
// 1. Convert everything to a string
resArray = children.map((c) =>
c == null || typeof c === 'boolean' ? '' : c.toString()
)
// ... logic for promises ...
// 2. The Fatal Flaw: Joining strings and marking them as RAW
return raw(resArray.join(''))The function c.toString() returns the string representation. If c is the string <img src=x...>, toString() returns exactly that. Then raw() marks it as safe.
The Fix (4.11.7):
import { Fragment } from './base'
// The fix relies on standard JSX composition
// We cast to Child[] and let the engine decide how to render it
return Fragment({ children: resArray as Child[] })The fix is elegant in its simplicity. Instead of hacking the string concatenation, the maintainers switched to using a Fragment. This keeps the children as distinct nodes in the virtual DOM (or Hono's equivalent), ensuring that string nodes are subjected to standard escaping rules before they hit the wire.
Exploiting this requires a scenario where an attacker can reflect input inside an ErrorBoundary. While ErrorBoundary is usually placed high up in the component tree (like in a Layout), developers often use it granularly around widgets.
The Setup:
Imagine a developer wraps a user profile card in an ErrorBoundary because the profile data fetches might fail.
app.get('/user', (c) => {
const name = c.req.query('name') // User controlled!
return c.html(
<ErrorBoundary fallback={<div>Failed to load</div>}>
<div class="profile">
Welcome, {name}
</div>
</ErrorBoundary>
)
})The Payload:
An attacker sends a link: https://example.com/user?name=<img src=x onerror=alert(document.cookie)>
The Execution Flow:
name variable enters the JSX tree.<ErrorBoundary>, name is part of the children array..toString() on the child, preserving the <img...> tag.raw().This bypasses the developer's expectation that {name} is safe because it's inside curly braces. It turns a standard reflected value into a stored-like XSS vector.
The fix is straightforward: Update hono to version 4.11.7 or higher. The Hono team responded quickly, and the patch essentially removes the dangerous logic entirely in favor of standard composition.
If you are stuck on an older version (perhaps due to other dependencies), you are in a tight spot. You cannot monkey-patch the ErrorBoundary easily without forking the package. Your best interim defense is to manually sanitize every variable passed into an ErrorBoundary using Hono's escapeHtml utility:
import { escapeHtml } from 'hono/utils/html'
<ErrorBoundary>
{escapeHtml(userInput)} {/* Double escaping is better than XSS */}
</ErrorBoundary>However, since ErrorBoundary is often used deeply within libraries or layouts, finding every usage is tedious and error-prone. Just upgrade the package. It's lighter than your guilt will be after a breach.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
hono Hono | < 4.11.7 | 4.11.7 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 |
| CVSS Score | 4.7 (Medium) |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| EPSS Score | 0.00036 |
| Attack Vector | Network / Reflected |
| Vendor | Hono |
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.