CVE-2026-29086 Hono: Cookie Attribute Injection via Unsanitized domain and path in setCookie()
MediumCVSS 5.4
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, the setCookie() utility did not validate semicolons (;), carriage returns (\r), or newline characters (\n) in the domain and path options when constructing the Set-Cookie header. Because cookie attributes are delimited by semicolons, this could allow injection of additional cookie attributes if untrusted input was passed into these fields. This issue has been patched in version 4.12.4.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| hono | < 4.12.4 | 4.12.4 | Fixed |
| npm hono(npm) | < 4.12.4 | 4.12.4 | Fixed |
| honojs hono | = < 4.12.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| honojs hono | = < 4.12.4 | No fix listed |
| npm hono(npm) | < 4.12.4 | 4.12.4 |
| hono | < 4.12.4 | 4.12.4 |
References
- https://github.com/honojs/hono/security/advisories/GHSA-5pq2-9x2x-5p6w vendor-advisory
- https://github.com/honojs/hono/commit/44ae0c8cc4d5ab2bed529127a4ac72e1483ad073 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product