CVE-2026-47675
Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection
Overview
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.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness: CWE-113, CWE-1287
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | hono | <4.12.21 | 4.12.21 |
Open a package to see all its vulnerabilities.
Operating systems · 16 fixes
chainguard 1 release · 7 packages
| Release | Package | Fixed in |
|---|---|---|
| hono | not affected | |
| commercial-gitlab-rails-ee-19-1 | 19.1.7-r3 | |
| commercial-gitlab-rails-ee-fips-19-1 | 19.1.9-r0 | |
| commercial-gitlab-rails-ee-19-2 +1 | 19.2.7-r1 | |
| commercial-gitlab-rails-ee-19-3 +1 | 19.3.3-r1 | |
| commercial-gitlab-rails-ee-19-4 +1 | 19.4.1-r1 |
1 more row
minimos 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| opensearch-dashboards-2 +1 | 2.19.6-r0 | |
| n8n | 2.26.4-r0 | |
| mcp-filesystem | 2026.6.16-r0 | |
| openclaw | 2026.6.6-r0 | |
| mcp-mongodb | 3.1.0-r0 | |
| trigger-dev | 4.5.4-r0 |
3 more rows
References
- github.com https://github.com/honojs/hono
- github.com https://github.com/honojs/hono/commit/905aedbc20661e0e2fa378783a7ec44a5c3df43d
- github.com https://github.com/honojs/hono/releases/tag/v4.12.21
- github.com https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-47675
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.