CVE-2026-93981
hono/jsx renders plain strings unescaped in boundary components, leading to XSS
Description
Summary
hono/jsx does not HTML-escape a plain string placed directly as a child or fallback of Suspense or ErrorBoundary, as the only child of a Context.Provider, or as the root value of renderToString() / renderToReadableStream() from hono/jsx/dom/server. Such a string is emitted as markup instead of text.
Details
These paths stringify their input and treat the result as already-escaped HTML, so a plain string passes through unchanged. Notable cases:
Suspense: a string child, or a stringfallbackwhile a child suspends. With streaming, the fallback reaches the browser in the initial chunk.ErrorBoundary: a string child alongside an asynchronous sibling. The all-synchronous case was fixed in 4.11.7 (GHSA-9r54-q6cx-xmh5).Context.Provider: a single string child. Multiple children are escaped.hono/jsx/dom/server: a string, or an array containing strings, passed as the root.
A lone {children} forwarded by a wrapper component is enough to reach these paths. Strings wrapped in an element, values from raw() or the html helper, and client-side rendering with hono/jsx/dom are not affected.
Impact
An attacker who controls a string rendered in an affected position can inject arbitrary HTML into the server-rendered page, leading to cross-site scripting under the application's origin.
This issue affects applications that render untrusted strings directly in one of the positions above during server-side rendering.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » honovia npm hono | < 4.13.7 | 4.13.7 |
| org.webjars.npm » honovia npm hono | < 4.13.7 | 4.13.7 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 42 |
| 2 hops | 9 |
Most used dependents
- org.mvnpm » prisma1 usages
- org.mvnpm.at.prisma » dev1 usages
- org.mvnpm » zudoku0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-93981 | nvd.nist.gov |
| Package | honojs/hono | github.com |
| Web | honojs/hono advisory GHSA-hxh3-vqpv-xpqv | github.com |
| Web | honojs/hono commit 2b8ed40 | github.com |
| Web | honojs/hono release v4.13.7 | github.com |
| Web | advisories/hono-jsx-before-4.13.7-cross-site-scripting-via-unescaped-strings | vulncheck.com |
