Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. hono
  4. ›
  5. CVE-2026-29086

CVE-2026-29086: Hono Vulnerable to Cookie Attribute Injection via Unsanitized domain and path in setCookie()

March 4, 2026 (updated March 5, 2026)

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.

References

  • github.com/advisories/GHSA-5pq2-9x2x-5p6w
  • github.com/honojs/hono
  • github.com/honojs/hono/commit/44ae0c8cc4d5ab2bed529127a4ac72e1483ad073
  • github.com/honojs/hono/security/advisories/GHSA-5pq2-9x2x-5p6w
  • nvd.nist.gov/vuln/detail/CVE-2026-29086

Code Behaviors & Features

Detect and mitigate CVE-2026-29086 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.12.4

Fixed versions

  • 4.12.4

Solution

Upgrade to version 4.12.4 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1113: Inappropriate Comment Style
  • CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')

Source file

npm/hono/CVE-2026-29086.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:57 +0000.