Skip to main content
← All vulnerabilities
CVE-2026-56762GHSA-26PP-8WGV-HJVM

Hono - Missing Cookie Name Validation in setCookie()

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

Summary

Hono before 4.12.12 does not validate cookie names on the write path in the setCookie(), serialize(), and serializeSigned() functions, allowing invalid characters such as control characters (e.g. \r or \n) when an application passes a user-controlled cookie name. This can produce malformed Set-Cookie header values. In modern runtimes such as Node.js and Cloudflare Workers, such invalid header values are rejected and cause a runtime error before the response is sent, so header injection or response splitting could not be reproduced; the issue primarily affects correctness and robustness, resulting in runtime errors (availability) rather than confirmed header injection.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • Hono Hono

    fixed in 4.12.12

  • hononpm

    fixed in 4.12.12

References 2

GitHub · honojs/hono

vulncheck.com