p PatchFirst

CVE-2026-47675

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.21, 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. This vulnerability is fixed in 4.12.21.

CVSS 4.3 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • hono

    Versions
    • < 4.12.21: Affected

    No fix published

  • hono npm

    Affected ranges
    • SEMVER: < 4.12.21

    Update to 4.12.21

Original sources

Check your server →