CVE-2026-56762CWE-20

Hono - Missing Cookie Name Validation in setCookie()

Medium · published June 23, 2026

CVSS v4.0
6.9
EPSS
0%
Percentile
35.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS
0.00418 · 35.0th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2026-06-23T12:13Z
EPSS history
Timeline
  • 23 JUN 12:13Z
    Hono - Missing Cookie Name Validation in setCookie()
    cvelistv5