Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Hono: `memo()` retains SSR output across requests, leading to cross-user data disclosure
Vulnerability Description
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.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N
Vulnerability Type
对错误会话暴露数据元素
Vulnerability Title
Hono 会话机制问题漏洞
Vulnerability Description
honojs Hono是honojs组织开源的一个轻量级的Web服务器框架。 Hono 3.8.0版本至4.12.34之前版本存在会话机制问题漏洞,该漏洞源于memo()函数保留服务端渲染结果并在后续渲染中重用,未将请求作用域值纳入比较,可能导致响应中包含其他用户请求的HTML,从而泄露其他用户的账户或资料数据、CSRF令牌等请求作用域敏感信息,或将角色特定内容暴露给不应接收的用户。
CVSS Information
N/A
Vulnerability Type
N/A