CVE-2026-56762
MEDIUMHono - Missing Cookie Name Validation in setCookie()
Title source: cnaDescription
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.
References (2)
Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-26pp-8wgv-hjvm)
https://github.com/honojs/hono/security/advisories/GHSA-26pp-8wgv-hjvm
Third Party Advisory third-party-advisory
VulnCheck Advisory: Hono - Missing Cookie Name Validation in setCookie()
https://www.vulncheck.com/advisories/hono-missing-cookie-name-validation-in-setcookie
Scores
CVSS v3
5.3
EPSS
0.0025
EPSS Percentile
16.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-20
Status
published
Products (2)
Hono/Hono
< 4.12.12
Hono/Hono
4.12.12
Published
Jun 23, 2026
Tracked Since
Jun 23, 2026