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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2026-05-28T15:28:23.458Z
- Modified: 2026-10-14T20:10:00.190Z
- Also known as: GHSA-3hrh-pfw6-9m5x
- Weaknesses: CWE-113, CWE-1287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- honojs hono: < 4.12.21
- hono (npm): before 4.12.21
- hono hono: before 4.12.21

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-47675](https://www.cve.org/CVERecord?id=CVE-2026-47675), CVE Terms of Use, modified 2026-05-28
- GitHub Advisory Database: [GHSA-3hrh-pfw6-9m5x](https://github.com/advisories/GHSA-3hrh-pfw6-9m5x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-47675](https://nvd.nist.gov/vuln/detail/CVE-2026-47675), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2026-47675 · Whole record: https://cve.day/CVE-2026-47675.json · Rebuilt by cve.day 2026-11-25T22:59:22.967Z
