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

CVE-2026-47675: Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection

June 4, 2026

The serialize() function in hono/cookie validates domain and path options against characters that corrupt Set-Cookie header syntax (;, \r, \n), but does not apply the same validation to sameSite and priority. An application that passes user-controlled input into either option may produce a Set-Cookie response header containing attacker-chosen additional attributes.

References

  • github.com/advisories/GHSA-3hrh-pfw6-9m5x
  • github.com/honojs/hono/commit/905aedbc20661e0e2fa378783a7ec44a5c3df43d
  • github.com/honojs/hono/releases/tag/v4.12.21
  • github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x
  • nvd.nist.gov/vuln/detail/CVE-2026-47675

Code Behaviors & Features

Detect and mitigate CVE-2026-47675 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.21

Fixed versions

  • 4.12.21

Solution

Upgrade to version 4.12.21 or above.

Impact 4.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  • CWE-1287: Improper Validation of Specified Type of Input

Source file

npm/hono/CVE-2026-47675.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:23:40 +0000.