Improper input validation in Hono

CVE-2026-56762

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.

Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)

EPSS: 0.004 (35.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

Affected products

  • Hono — versions 0, 4.12.12

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-56762?
CVE-2026-56762 is a medium-severity vulnerability in Hono, classified under Improper Input Validation. CVSS score: 5.3/10. Published 2026-06-23.
How severe is CVE-2026-56762?
Medium severity. CVSS v3 base score is 5.3 out of 10.