CVE-2026-56762
Hono missing validation of cookie name on write path in setCookie()
Overview
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.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness: CWE-20
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | hono | <4.12.12 | 4.12.12 |
Open a package to see all its vulnerabilities.
Operating systems · 14 fixes
chainguard 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| gemini-cli | 0.37.0-r0 | |
| librechat | 0.8.4-r5 | |
| opensearch-dashboards-2-fips | 2.19.5-r7 | |
| opensearch-dashboards-2 | 2.19.5-r8 | |
| langfuse-fips-3 | 3.164.0-r3 | |
| langfuse-3 | 3.164.0-r5 |
3 more rows
minimos 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| opensearch-dashboards-2 +1 | 2.19.6-r0 | |
| mcp-filesystem | 2026.6.16-r0 | |
| trigger-dev | 4.5.4-r0 | |
| kibana-9-3 | 9.3.4-r0 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| langfuse-3 | 3.164.0-r5 |
References
- github.com https://github.com/honojs/hono
- github.com https://github.com/honojs/hono/commit/a586cd72e3f6122792e631ecf1817e5cabb803ec
- github.com https://github.com/honojs/hono/releases/tag/v4.12.12
- github.com https://github.com/honojs/hono/security/advisories/GHSA-26pp-8wgv-hjvm
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-56762
- www.vulncheck.com https://www.vulncheck.com/advisories/hono-missing-cookie-name-validation-in-setcookie
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.