Skip to main content
← All vulnerabilities
CVE-2026-47675GHSA-3HRH-PFW6-9M5X

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.12.21
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • honojs hono

    fixed in 4.12.21

  • hononpm

    fixed in 4.12.21

References 1

GitHub · honojs/hono