{"id":"CVE-2026-47675","published":"2026-05-28T15:28:23Z","modified":"2026-05-28T19:17:17Z","title":"Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection","vendor":"honojs","product":"hono","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00216,"percentile":0.1227,"provenance":"source"},"cwes":[{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"},{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":2.45},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"honojs","affectedVersions":[{"vendor":"honojs","product":"hono","versions":["< 4.12.21"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-28T19:16:42.834142Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hono","vulnerableRanges":["<4.12.21"],"patched":["4.12.21"],"from":["GHSA-3hrh-pfw6-9m5x"],"provenance":"source"}],"summary":{"text":"The Hono web framework's cookie helper, hono/cookie in the serialize() function, fails to sanitize the sameSite and priority options before building the Set-Cookie header, although it validates domain and path, so input reaching those two options can corrupt the header. An attacker can exploit this when an application passes user-controlled input into sameSite or priority, injecting extra cookie attributes into the response, and this requires user interaction and no privileges or network-level conditions beyond the application reflecting that input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:11Z"},"euvd":{"id":"EUVD-2026-32925","exploited":false,"provenance":"source"}}