Résumé
hono/jsx does not isolate context per request, leading to cross-request data disclosure
Détails de l’avis
Summary
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.
Details
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
jsxRenderermiddleware anduseRequestContext()
It arises only when context is read after an await inside an async component while requests render concurrently. Reading context synchronously (before any await), purely synchronous rendering, and client-side (DOM) rendering are not affected.
Impact
Under concurrent requests, a response could be rendered with another request's context. A user may receive HTML rendered for a different user, and an authorization check performed after an await may be evaluated against another user's data.
This may lead to:
- disclosure of rendered output intended for another user
- authorization decisions made with the wrong request's context
- cross-request mixing of session or other request-scoped state
Références
Vulnérabilités liées
Tout Supply chain →- MEDIUMCVE-2026-73557
vLLM: Incomplete CVE-2025-62164 remediation can be bypassed by concurrent prompt parts
- HIGHCVE-2026-55784
free5GC AUSF authentication contexts can be overwritten by concurrent requests for the same SUPI
- MEDIUMGHSA-mc9m-6fm9-pghc#kcl-lib
Zoo Design Studio: Memory-corruption in memory handling of lib-kcl
- MEDIUMGHSA-mc9m-6fm9-pghc#zoo-kcl
Zoo Design Studio: Memory-corruption in memory handling of lib-kcl
- MEDIUMCVE-2026-45404
OpenTelemetry-Go: Unsynchronized baggage map can panic under concurrent access
- MEDIUMCVE-2026-64865
New API: Redis user quota cache overwrite via PUT /api/user/self allows quota bypass