4.8medium
Hono has a non-breaking space prefix bypass in cookie name handling in getCookie()
- Severity
- 4.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-r5rp-j6wh-rvv4
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.12, a discrepancy between browser cookie parsing and parse() handling allows cookie prefix protections to be bypassed. Cookie names that are treated as distinct by the browser may be normalized to the same key by parse(), allowing attacker-controlled cookies to override legitimate ones. This vulnerability is fixed in 4.12.12.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| honojs hono | < 4.12.12 | CVE List |
| hono (npm) | before 4.12.12 | GitHub Advisory Database |
| hono hono | up to 4.12.11 | NVD |
All scores
| GitHub_M | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.12, a discrepancy between browser cookie parsing and parse() handling allows cookie prefix protections to be bypassed. Cookie names that are treated as distinct by the browser may be normalized to the same key by parse(), allowing attacker-controlled cookies to override legitimate ones. This vulnerability is fixed in 4.12.12.
GitHub Advisory Database
Summary
A discrepancy between browser cookie parsing and parse() handling allows cookie prefix protections to be bypassed.
Cookie names that are treated as distinct by the browser may be normalized to the same key by parse(), allowing attacker-controlled cookies to override legitimate ones.
Details
Browsers follow RFC 6265bis and only trim SP (0x20) and HTAB (0x09) from cookie names. Other characters, such as the non-breaking space (U+00A0), are preserved as part of the cookie name.
For example, the browser treats the following cookies as distinct:
"dummy-cookie"
"\u00a0dummy-cookie"
However, parse() previously used JavaScript's trim(), which removes a broader set of characters including U+00A0. As a result, both names are normalized to:
"dummy-cookie"
This mismatch allows attacker-controlled cookies with a U+00A0 prefix to shadow or override legitimate cookies when accessed via getCookie().
Impact
An attacker who can set cookies (e.g., via a man-in-the-middle on a non-secure page or other injection vector) can bypass cookie prefix protections and override sensitive cookies.
This may lead to:
- Bypassing
__Secure-and__Host-prefix protections - Overriding cookies that rely on the Secure attribute
- Session fixation or session hijacking depending on application usage
This issue affects applications that rely on getCookie() for security-sensitive cookie handling.
NVD (es)
Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de 4.12.12, una discrepancia entre el análisis de cookies del navegador y el manejo de parse() permite que las protecciones de prefijo de cookie sean eludidas. Nombres de cookie que son tratados como distintos por el navegador pueden ser normalizados a la misma clave por parse(), permitiendo que las cookies controladas por el atacante anulen las legítimas. Esta vulnerabilidad se corrige en 4.12.12.
References
| https://github.com/honojs/hono/security/advisories/GHSA-r5rp-j6wh-rvv4 | vendor-advisory, web | |
| https://github.com/honojs/hono/commit/cc067c85592415cb1880ad3c61ed923472452ec0 | third-party-advisory, web | |
| https://github.com/honojs/hono/releases/tag/v4.12.12 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39410 | advisory | |
| https://github.com/honojs/hono | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39410 changed 2026-04-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r5rp-j6wh-rvv4 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-39410 changed 2026-07-24 | Public domain |