Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-29086 EUVD-2026-9508GHSA-5pq2-9x2x-5p6w

Hono: Cookie Attribute Injection via Unsanitized domain and path in setCookie()

Published Mar 4, 2026 · Updated Mar 5, 2026 · Assigned by GitHub_M

Description

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, the setCookie() utility did not validate semicolons (;), carriage returns (\r), or newline characters (\n) in the domain and path options when constructing the Set-Cookie header. Because cookie attributes are delimited by semicolons, this could allow injection of additional cookie attributes if untrusted input was passed into these fields. This issue has been patched in version 4.12.4.

Affected products

VendorProductAffectedFixed
honojs hono < 4.12.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono < 4.12.4 4.12.4 GHSA-5pq2-9x2x-5p6w

Advisories 1

References