{"id":"CVE-2026-71850","aliases":["CVE-2026-71850","GHSA-f23p-vx2j-j53r"],"related":[],"kind":"vulnerability","state":"published","title":"Hono: `memo()` retains SSR output across requests, leading to cross-user data disclosure","summary":"Hono is a Web application framework that provides support for any JavaScript runtime. From 3.8.0 to 4.12.33, memo() from hono/jsx retains the result of a server side render and reuses it for later renders with comparator equal props, and request scoped values read inside the component take no part in that comparison, so a response can contain HTML rendered for another user's request. Components wrapped with memo() are compared by props alone; values read implicitly during rendering, such as JSX Context through createContext() and useContext(), useRequestContext() from hono/jsx-renderer, and getContext() from hono/context-storage, do not participate, and the retained result lives as long as the wrapped component, so it outlives the request that produced it. A user may receive a response containing HTML rendered for another user when both render the same memoized component with comparator equal props on the same warm instance, which may disclose another user's account or profile data, disclose request scoped secrets embedded in HTML such as CSRF tokens, or expose role specific content to users who should not receive it. This issue is fixed in version 4.12.34.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Hono is a Web application framework that provides support for any JavaScript runtime. From 3.8.0 to 4.12.33, memo() from hono/jsx retains the result of a server side render and reuses it for later renders with comparator equal props, and request scoped values read inside the component take no part in that comparison, so a response can contain HTML rendered for another user's request. Components wrapped with memo() are compared by props alone; values read implicitly during rendering, such as JSX Context through createContext() and useContext(), useRequestContext() from hono/jsx-renderer, and getContext() from hono/context-storage, do not participate, and the retained result lives as long as the wrapped component, so it outlives the request that produced it. A user may receive a response containing HTML rendered for another user when both render the same memoized component with comparator equal props on the same warm instance, which may disclose another user's account or profile data, disclose request scoped secrets embedded in HTML such as CSRF tokens, or expose role specific content to users who should not receive it. This issue is fixed in version 4.12.34.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`memo()` from `hono/jsx` retains the result of a server-side render and reuses it for later renders with comparator-equal props. Request-scoped values read inside the component take no part in that comparison, so a response can contain HTML rendered for another user's request.\n\n### Details\n\nComponents wrapped with `memo()` are compared by props alone. Values read implicitly during rendering do not participate: JSX Context through `createContext()` and `useContext()`, `useRequestContext()` from `hono/jsx-renderer`, and `getContext()` from `hono/context-storage`. The retained result lives as long as the wrapped component, so it outlives the request that produced it.\n\nPer-request context isolation is not what fails: the current request's values are established correctly, but the memoized component is skipped before anything reads them.\n\nThis issue arises when a component wrapped in `memo()` obtains user- or request-specific data from an ambient context instead of through props.\n\n### Impact\n\nA user may receive a response containing HTML rendered for another user, when both render the same memoized component with comparator-equal props on the same warm instance.\n\nThis may lead to:\n\n- Disclosure of another user's account or profile data\n- Disclosure of request-scoped secrets embedded in HTML, such as CSRF tokens\n- Exposure of role-specific content to users who should not receive it\n\nExploitation depends on the order in which renders populate the retained value and on both requests reaching the same warm instance.\n\nThis issue affects applications that render with `hono/jsx` on the server and wrap a component reading ambient request state in `memo()`. Applications that pass all request-specific values through props, or that do not use `memo()`, are unaffected. Client-side rendering is unaffected.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Desde la versión 3.8.0 hasta la 4.12.33, memo() de hono/jsx retiene el resultado de una renderización del lado del servidor y lo reutiliza para renderizaciones posteriores con props iguales al comparador, y los valores con alcance de solicitud leídos dentro del componente no participan en esa comparación, por lo que una respuesta puede contener HTML renderizado para la solicitud de otro usuario. Los componentes envueltos con memo() se comparan solo por sus props; los valores leídos implícitamente durante la renderización, como el Contexto JSX a través de createContext() y useContext(), useRequestContext() de hono/jsx-renderer, y getContext() de hono/context-storage, no participan, y el resultado retenido vive tanto como el componente envuelto, por lo que sobrevive a la solicitud que lo produjo. Un usuario puede recibir una respuesta que contenga HTML renderizado para otro usuario cuando ambos renderizan el mismo componente memoizado con props iguales al comparador en la misma instancia “warm”, lo que puede divulgar los datos de cuenta o perfil de otro usuario, divulgar secretos con alcance de solicitud incrustados en HTML como tokens CSRF, o exponer contenido específico de rol a usuarios que no deberían recibirlo. Este problema está solucionado en la versión 4.12.34.","source":"nvd"}],"published":"2026-08-07T18:41:17.068Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-488"],"affected":[{"ranges":[{"version":">= 3.8.0, < 4.12.34","status":"affected"}],"vendor":"honojs","product":"hono","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.8.0","status":"affected","fixed":"4.12.34"}],"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","source":"ghsa"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-f23p-vx2j-j53r","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/hono/commit/0c45036d6b0ddf42ab2fa44639dc8710825d5c0f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/honojs/hono","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/honojs/hono/releases/tag/v4.12.34","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-10T13:26:46.686Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-71850","url":"https://www.cve.org/CVERecord?id=CVE-2026-71850","licence":"CVE Terms of Use","modified":"2026-08-10T13:26:55.984Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f23p-vx2j-j53r","url":"https://github.com/advisories/GHSA-f23p-vx2j-j53r","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:13.947Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-71850","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71850","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:31.876Z","epss":{"score":0.00164,"percentile":0.05877,"date":"2026-12-01T12:00:22.000Z"}}