CVE-2026-56762 Details
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.
A vulnerability exists in Hono versions prior to 4.12.12, where the framework fails to properly validate cookie names during the serialization process in the setCookie(), serialize(), and serializeSigned() functions. This lack of validation allows the inclusion of invalid characters, such as control characters (e.g., carriage return or newline), in user-controlled cookie names. As a result, applications can generate malformed Set-Cookie header values. While modern runtimes like Node.js and Cloudflare Workers reject such invalid headers and produce runtime errors before the response is sent, the issue still impacts the correctness and robustness of applications, leading to potential availability problems.
Users can upgrade to Hono version 4.12.12 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 23, 2026CISA-ADP
Assessed Jun 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/honojs/hono/security/advisories/GHSA-26pp-8wgv-hjvm | [email protected] | AdvisoryRemedyVendor |
| https://www.vulncheck.com/advisories/hono-missing-cookie-name-validation-in-setcookie | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Hono | < 4.12.12 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 24, 2026 | CVE Modified | [email protected] |
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2026 | New CVE Received | [email protected] |
Volerion