npm
CVE-2026-93981
hono/jsx renders plain strings unescaped in boundary components, leading to XSS
- Severity
- Medium 4.7
- Published
- 30 Sept 2026
- Last changed
- 1 Oct 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 4.13.7
- Exploit chance
- 0.2% in the next 30 daysHigher than 13% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Cross-site scripting (CWE-79)
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N- Also known as
- GHSA-hxh3-vqpv-xpqv
- Sources
- OSV.dev and GitHub
Description
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.
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 string fallback while 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.
Affected software
| Software | Affected versions |
|---|---|
hononpm · osv:npm:hono |
|
About hono
- Weekly downloads (npm)
- 108,805,821npm, 16 Nov 2026
Vulnerabilities in hono
- In our list
- 26
- Published in the last 12 months
- 26
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-109955Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static pathsMedium 5.3 20 Oct 2026
- CVE-2026-84365Hono: Incomplete fix for CVE-2026-39408: `toSSG()` still writes files outside the output directoryMedium 6.5 8 Sept 2026
- CVE-2026-84364Hono: Unbounded dot-notation nesting in `parseBody()` can cause memory exhaustionMedium 5.3 8 Sept 2026
- CVE-2026-84363Hono: Query parser reads parameters after the URL fragment, causing cache-key and proxy interpretation differentialsMedium 5.9 8 Sept 2026
- CVE-2026-71850Hono: `memo()` retains SSR output across requests, leading to cross-user data disclosureMedium 4.8 7 Aug 2026
- CVE-2026-71849Hono: Proxy Helper does not remove response headers listed in the `Connection` headerLow 3.7 7 Aug 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-93981
- GitHub Advisory Database https://github.com/advisories/GHSA-hxh3-vqpv-xpqv