{"id":"CVE-2026-47675","state":"PUBLISHED","title":"Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection","description":"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.","publishedAt":"2026-05-28T15:28:23.458Z","updatedAt":"2026-05-28T19:17:17.728Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["honojs hono"],"affected":[{"vendor":"honojs","product":"hono","versions":[{"version":"< 4.12.21","status":"affected"}]}],"references":["https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x"],"weaknesses":["CWE-113","CWE-1287"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/47xxx/CVE-2026-47675.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-47675","state":"PUBLISHED","datePublished":"2026-05-28T15:28:23.458Z","dateUpdated":"2026-05-28T19:17:17.728Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-19T21:10:38.798Z"},"containers":{"cna":{"title":"Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"honojs","product":"hono","versions":[{"version":"< 4.12.21","status":"affected"}]}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x","name":"https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-113","lang":"en","description":"CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-1287","lang":"en","description":"CWE-1287: Improper Validation of Specified Type of Input","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-28T15:28:23.458Z"},"source":{"advisory":"GHSA-3hrh-pfw6-9m5x","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-28T19:16:42.834142Z","id":"CVE-2026-47675","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-28T19:17:17.728Z"}}]}}}