CVE-2026-56762 Hono - Missing Cookie Name Validation in setCookie()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm hono | < 4.12.12 | 4.12.12 | Fixed |
| npm hono(npm) | < 4.12.12 | 4.12.12 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm hono | < 4.12.12 | 4.12.12 |
| npm hono(npm) | < 4.12.12 | 4.12.12 |
References
- GitHub Security Advisory (GHSA-26pp-8wgv-hjvm) vendor-advisory
- VulnCheck Advisory: Hono - Missing Cookie Name Validation in setCookie() third-party-advisory
- github.com patch
- github.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product