# CVE-2026-56762: Hono - Missing Cookie Name Validation in setCookie()

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-04-08T00:17:02.000Z
- Modified: 2026-09-24T18:45:10.903Z
- Also known as: GHSA-26pp-8wgv-hjvm
- Weaknesses: CWE-20, CWE-113
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Hono Hono: before 4.12.12 (not affected: 4.12.12)
- hono (npm): before 4.12.12

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-26pp-8wgv-hjvm> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/hono-missing-cookie-name-validation-in-setcookie> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56762> (advisory)
- <https://github.com/honojs/hono/commit/a586cd72e3f6122792e631ecf1817e5cabb803ec> (web)
- <https://github.com/honojs/hono> (package)
- <https://github.com/honojs/hono/releases/tag/v4.12.12> (web)

## Sources

- CVE List: [CVE-2026-56762](https://www.cve.org/CVERecord?id=CVE-2026-56762), CVE Terms of Use, modified 2026-06-24
- GitHub Advisory Database: [GHSA-26pp-8wgv-hjvm](https://github.com/advisories/GHSA-26pp-8wgv-hjvm), CC-BY-4.0, modified 2026-09-24
- NVD: [CVE-2026-56762](https://nvd.nist.gov/vuln/detail/CVE-2026-56762), Public domain, modified 2026-06-24

---

Page: https://cve.day/CVE-2026-56762 · Whole record: https://cve.day/CVE-2026-56762.json · Rebuilt by cve.day 2026-11-25T22:59:25.459Z
