CVE-2026-56762
Hono before 4.12.12 does not validate cookie names on the write …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/honojs/hono/security/advisories/GHSA-26pp-8wgv-hjvm
- www.vulncheck.com/advisories/hono-missing-cookie-name-validation-in-setcookie
- github.com/honojs/hono/commit/a586cd72e3f6122792e631ecf1817e5cabb803ec
- github.com/honojs/hono/releases/tag/v4.12.12
- nvd.nist.gov/vuln/detail/CVE-2026-56762
- github.com/advisories/GHSA-26pp-8wgv-hjvm
- nvd.nist.gov/vuln/detail/CVE-2026-56762
- cve.org/CVERecord?id=CVE-2026-56762
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.