Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-56762 EUVD-2026-38443GHSA-26pp-8wgv-hjvmGHSA-55cm-p4ww-685g

Hono - Missing Cookie Name Validation in setCookie()

Published Jun 23, 2026 · Updated Jun 24, 2026 · 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.

Affected products

VendorProductAffectedFixed
Hono Hono < 4.12.12 4.12.12

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-worker 3.164.0-r5 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono < 4.12.12 4.12.12 GHSA-26pp-8wgv-hjvm

References