Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-47675 EUVD-2026-32925GHSA-3hrh-pfw6-9m5x

Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection

Published May 28, 2026 · Updated May 28, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
honojs hono < 4.12.21 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono < 4.12.21 4.12.21 GHSA-3hrh-pfw6-9m5x

References