CVE-2026-47675
MEDIUMHono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection
Title source: cnaDescription
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.21, the serialize() function in hono/cookie validates domain and path options against characters that corrupt Set-Cookie header syntax (;, \r, \n), but does not apply the same validation to sameSite and priority. An application that passes user-controlled input into either option may produce a Set-Cookie response header containing attacker-chosen additional attributes. This vulnerability is fixed in 4.12.21.
References (1)
Core 1
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x
Scores
CVSS v3
4.3
EPSS
0.0004
EPSS Percentile
14.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-113
CWE-1287
Status
published
Products (2)
hono/hono
< 4.12.21
honojs/hono
< 4.12.21
Published
May 28, 2026
Tracked Since
May 28, 2026