npm
CVE-2026-59896
hono/jsx does not isolate context per request, leading to cross-request data disclosure
- Severity
- Medium 6.5
- Published
- 21 Jul 2026
- Last changed
- 10 Sept 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 4.12.27
- Exploit chance
- 0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Race condition (CWE-362)
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N- Also known as
- GHSA-hvrm-45r6-mjfj
- Sources
- OSV.dev and GitHub
Description
hono/jsx did not isolate context values per request during server-side rendering. While an async component was suspended on await, its provided context value stayed observable to other requests rendering concurrently, so useContext() could return a value from a different in-flight request.
During server-side rendering, context values were kept in a process-wide structure rather than scoped to each request's render. While an async component awaited, another request entering the same provider could observe or replace the value; when the first render resumed, it could read the other request's context.
This affects the usual ways request-scoped data is passed through a server-rendered JSX tree:
- createContext() / useContext()
- the jsxRenderer middleware and useRequestContext()
It arises only when context is read after an await inside an async component while requests render concurrently.
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-93981hono/jsx renders plain strings unescaped in boundary components, leading to XSSMedium 4.7 30 Sept 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
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-59896
- GitHub Advisory Database https://github.com/advisories/GHSA-hvrm-45r6-mjfj