CVE-2026-47675
MEDIUM 5.3CVSS 3.1Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection
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.
- Published
- 28 May 2026
- Last modified
- 14 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-113CWE-1287
- Also known as
- GHSA-3hrh-pfw6-9m5x
- Sources
- NVDJSONOSV GHSA-3hrh-pfw6-9m5xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hono | honocpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:* |
< 4.12.21 | 4.12.21 |
| OSV | npm | hono | < 4.12.21 | 4.12.21 |
References
- https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-47675 · ADVISORY
- https://github.com/honojs/hono/commit/905aedbc20661e0e2fa378783a7ec44a5c3df43d · WEB
- https://github.com/honojs/hono · PACKAGE
- https://github.com/honojs/hono/releases/tag/v4.12.21 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 28 May 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 4 Jun 2026)