Hono: Cookie Attribute Injection via Unsanitized domain and path in setCookie() (honojs hono)
En bref
- Source
- NVD
- EPSS
- EPSS 0.26 % · centile 18 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Analyzed
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.
Faiblesses (CWE)
- CWE-1113 — Inappropriate Comment Style
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
Avis
- GHSA-5pq2-9x2x-5p6w — Hono Vulnerable to Cookie Attribute Injection via Unsanitized domain and path in setCookie()
Références européennes
- ENISA EUVD · EUVD-2026-9508
- GCVE · GCVE-0-2026-29086
Configurations affectées (CPE NVD)
cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*< 4.12.4
Produits affectés
| Produit | Versions |
|---|---|
| honojs · hono | affected < 4.12.4 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |