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

Published Jun 23, 2026
·
Updated

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.

Affected Software

1 affected component
npm/hono<4.12.12

Event History

Jun 23, 2026
CVE Published
via MITRE·12:13 PM
Data Sourced
via MITRE·12:13 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56762?

CVE-2026-56762 has a medium severity rating of 5.3.

2

How do I fix CVE-2026-56762?

You can fix CVE-2026-56762 by upgrading Hono to version 4.12.12 or later.

3

What is the impact of CVE-2026-56762?

CVE-2026-56762 allows for malformed Set-Cookie headers due to missing cookie name validation.

4

Which functions are affected by CVE-2026-56762?

The affected functions in CVE-2026-56762 are setCookie(), serialize(), and serializeSigned().

5

Can CVE-2026-56762 be exploited?

Yes, CVE-2026-56762 can be exploited if an application accepts user-controlled cookie names.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203