{"id":"CVE-2026-29086","published":"2026-03-04T22:09:01Z","modified":"2026-03-05T15:42:10Z","title":"Hono: Cookie Attribute Injection via Unsanitized domain and path in setCookie()","vendor":"honojs","product":"hono","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00313,"percentile":0.16701,"provenance":"source"},"cwes":[{"id":"CWE-1113","name":"Inappropriate Comment Style"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-5pq2-9x2x-5p6w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/honojs/hono/commit/44ae0c8cc4d5ab2bed529127a4ac72e1483ad073","tags":["x_refsource_MISC"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":3.34},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"honojs","affectedVersions":[{"vendor":"honojs","product":"hono","versions":["< 4.12.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-05T15:29:14.844587Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hono","vulnerableRanges":["<4.12.4"],"patched":["4.12.4"],"from":["GHSA-5pq2-9x2x-5p6w"],"provenance":"source"}],"summary":{"text":"The flaw is in Hono, a web application framework, specifically in its setCookie() utility, which fails to sanitize semicolons, carriage returns, and newlines in the domain and path options when building the Set-Cookie header. An attacker who can supply untrusted input to those fields over the network, with no privileges and with a victim user performing an interaction, can inject additional cookie attributes into the header, provided the application passes untrusted data into those options.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:08Z"},"euvd":{"id":"EUVD-2026-9508","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27700","published":"2026-02-25","fixed":"4.12.2","kev":false,"link":{"from":"CVE-2026-27700","to":"CVE-2026-29086","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:hono","fromFixed":"4.12.2","toFixed":"4.12.4","daysApart":7}]}},{"cve":"CVE-2026-29045","published":"2026-03-04","fixed":"4.12.4","kev":false},{"cve":"CVE-2026-29085","published":"2026-03-04","fixed":"4.12.4","kev":false},{"cve":"CVE-2026-29086","published":"2026-03-04","fixed":"4.12.4","kev":false},{"cve":"CVE-2026-56763","published":"2026-07-11","fixed":"4.12.7","kev":false},{"cve":"CVE-2026-39407","published":"2026-04-08","fixed":"4.12.12","kev":false},{"cve":"CVE-2026-39408","published":"2026-04-08","fixed":"4.12.12","kev":false}],"package":"npm:hono"}}