Description (CNA)
hono before 4.13.7 fails to HTML-escape plain strings rendered by hono/jsx as a child or fallback of Suspense, as a string child of ErrorBoundary alongside an asynchronous sibling, as the single child of a Context.Provider, or as the root value passed to renderToString() or renderToReadableStream() from hono/jsx/dom/server. These paths stringify their input and treat the result as already-escaped markup, so an attacker who controls such a string during server-side rendering can inject arbitrary HTML and execute script under the application's origin.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| honojs / hono | affected 0 before 4.13.7; unaffected 4.13.7 |
CWE
CWE-79
References
- https://github.com/honojs/hono/security/advisories/GHSA-hxh3-vqpv-xpqv
- https://www.vulncheck.com/advisories/hono-jsx-before-4.13.7-cross-site-scripting-via-unescaped-strings
ADP enrichment
No English description supplied.
No references supplied.