CVE-2026-47675
Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: geringes Risiko, dass Daten oder Systeme verändert werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | hono | < 4.12.21 | 4.12.21 |
Betroffene Produkte · Hono
| Produkt | Betroffene Versionen |
|---|---|
| Hono | vor 4.12.21 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-3hrh-pfw6-9m5x
- https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x
- https://nvd.nist.gov/vuln/detail/CVE-2026-47675
- https://github.com/honojs/hono/commit/905aedbc20661e0e2fa378783a7ec44a5c3df43d
- https://github.com/honojs/hono/releases/tag/v4.12.21