Hono - Missing Cookie Name Validation in setCookie()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| honojs | Hono | before 4.12.12 | 4.12.12 | Patch available | CNA |
| — | hono (npm) | before 4.12.12 | 4.12.12 | Patch available | GHSA-26pp-8wgv-hjvm |
- Hono Vendorhonojs Affected before 4.12.12 Fixed in 4.12.12 Patch available CNA
- hono (npm) Vendor— Affected before 4.12.12 Fixed in 4.12.12 Patch available GHSA-26pp-8wgv-hjvm
Remediation
- Fix · CNA Hono (Hono) Fixed in 4.12.12
- Fix · GHSA-26pp-8wgv-hjvm hono (npm) Fixed in 4.12.12 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-56762
- 2026-10-03 Alias added: GHSA-26pp-8wgv-hjvm
References
More honojs vulnerabilities
- TI-2024-21741 Hono vulnerable to Restricted Directory Traversal in serveStatic with deno CVSS 3.1MEDIUM 5.3
- TI-2024-15441 @hono/node-server can't handle "double dots" in URL CVSS 3.1MEDIUM 5.3
- TI-2024-32610 Hono vulnerable to bypass of CSRF Middleware by a request without Content-Type header. CVSS 3.1MEDIUM 5.9
- TI-2024-29381 Hono CSRF middleware can be bypassed using crafted Content-Type header CVSS 3.1MEDIUM 5.0
- TI-2026-39189 Hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest CVSS 3.1MEDIUM 4.8
- TI-2026-23190 Hono: Arbitrary file access via serveStatic vulnerability CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-56762 · CVE Program
- CVE-2026-56762 · NVD
- FIRST EPSS
- GHSA-26pp-8wgv-hjvm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences