Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted sameSite/priority value to application
-
DeliveryApplication passes unsanitized value to serialize()
-
ExploitInject arbitrary attributes into Set-Cookie header
-
ExecutionVictim browser processes corrupted cookie response
-
ImpactAttacker manipulates victim session or cookie state
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTTP response header sanitization
|
| Exploitation Conditions | Exploitation requires two concrete conditions to hold simultaneously. First, the Hono application must pass user-controlled input directly or indirectly into the sameSite or priority parameter of the hono/cookie serialize() function - this is not a default framework behavior but an application-level pattern where, for instance, a cookie preference or locale value from a query parameter is forwarded into cookie options without sanitization. Second, the CVSS vector specifies UI:R (user interaction required), meaning a victim user must make an HTTP request that triggers the vulnerable code path - purely server-side or automated API consumers are not affected in the same way. Exploitation is limited by the unchanged scope (S:U): the attacker cannot leverage this to escape to a different security domain. Authentication is not required per PR:N in the CVSS vector. The vulnerability does not exist on systems running Hono 4.12.21 or later, or where user input is allowlisted before reaching cookie option parameters. |
| Impact | CVSS 3.1 scores this at 4.3 (Medium) with vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N. The network attack vector and low complexity confirm the exploit is reachable over the internet without elevated privileges, but the required user interaction (UI:R) constrains real-world impact - the victim's browser must make a request that triggers the vulnerable code path with attacker-supplied data. Scope is unchanged (S:U) and impact is limited to integrity (I:L), with no confidentiality or availability consequences per CVSS. No EPSS data was supplied in the intelligence feed; given no KEV listing and no known public exploit code, opportunistic mass exploitation appears unlikely. The realistic risk concentrates on applications that explicitly reflect user-provided input (query parameters, form fields, path segments) into sameSite or priority cookie options - a non-default but plausible application pattern. The absence of a vendor advisory URL beyond the GitHub GHSA advisory limits independent verification of exploitability details. |
| Exploit ScenarioDerived | An attacker crafts a URL or form payload containing a malicious string such as 'None; Secure; Set-Cookie: session=attacker_value' and delivers it to a victim via phishing or a malicious link. When the victim's browser follows the link, the target application reflects the attacker-supplied value into the priority or sameSite option of a cookie being set via Hono's serialize(), producing a corrupted Set-Cookie header containing the injected attributes. No public proof-of-concept code exists at time of analysis, but the low complexity of the injection technique makes reproduction straightforward for a skilled attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
HTTP response header injection in Hono's cookie serialize() function allows unauthenticated remote attackers to inject arbitrary Set-Cookie attributes when an application passes user-controlled input into the sameSite or priority cookie options. All Hono releases prior to 4.12.21 are affected across every supported JavaScript runtime. No public exploit code exists at time of analysis, and the vulnerability is not listed in CISA KEV, though the low attack complexity and network-accessible vector make it exploitable wherever the affected code path is reachable by user-supplied data.
RemediationAI
The primary remediation is to upgrade Hono to version 4.12.21 or later, which extends input validation to the sameSite and priority options in serialize(). This is a vendor-released patch confirmed by GitHub Security Advisory GHSA-3hrh-pfw6-9m5x. For applications unable to upgrade immediately, the effective compensating control is to sanitize or allowlist user-controlled input before passing it to the sameSite or priority cookie options - for example, accepting only the RFC-defined string literals ('Strict', 'Lax', 'None' for sameSite; 'High', 'Medium', 'Low' for priority) and rejecting all other values. This eliminates the injection surface without requiring a framework upgrade, though it places the validation burden on application code and may be missed in future refactors. Review all call sites of serialize() to audit whether any option values derive from external input. The full advisory is at https://github.com/honojs/hono/security/advisories/GHSA-3hrh-pfw6-9m5x.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hono is a lightweight, multi-runtime Web application framework (Node.js, Deno, Bun, Cloudflare Workers, etc.) identified by CPE cpe:2.3:a:honojs:hono:*:*:*:*:*:*:*:*. Its hono/cookie module exposes a serialize() function for building Set-Cookie header values. The function performs input sanitization on the domain and path options, rejecting characters that break cookie syntax (semicolons, carriage returns, newlines), but applies no equivalent validation to the sameSite or priority options. This maps directly to CWE-113 (Improper Neutralization of CRLF Sequences in HTTP Headers), a class of HTTP response splitting/header injection flaws. An attacker who can influence either option value can terminate the intended attribute field early and append attacker-chosen directives - or in environments where newline injection is not separately blocked, inject entirely new headers - into the HTTP response.
Know when Hono gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
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.
Blast Radius
ecosystem impact- 8 npm packages depend on hono (8 direct, 0 indirect)
Ecosystem-wide dependent count for version 4.12.21.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Improper authorization in Hono's JWT Auth Middleware (hono/jwt in the npm package 'hono', versions 1.1.0 through 4.10.1)
The adapter @hono/node-server allows you to run your Hono application on Node.js. Rated high severity (CVSS 7.5), this v
Hono, a web framework, prior to version 4.6.5 is vulnerable to bypass of cross-site request forgery (CSRF) middleware by
Quadratic-complexity denial of service in Hono's `languageDetector` middleware (versions 4.12.0-4.12.33) allows unauthen
Path prefix stripping in Hono's app.mount() API exposes mounted sub-applications to incorrect routing due to a raw-vs-de
Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.3),
@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Rated medium severity (CVSS 5.3),
Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.0),
Cross-user HTML disclosure in Hono's server-side rendering affects all applications using hono/jsx with memo()-wrapped c
Hono is a web framework written in TypeScript. Rated medium severity (CVSS 4.3), this vulnerability is remotely exploita
Hono is a Web application framework that provides support for any JavaScript runtime. [CVSS 8.2 HIGH]
Hono versions before 4.11.4 allow JWT algorithm confusion attacks through improper algorithm validation in the JWK/JWKS
EUVD-2026-32925
GHSA-3hrh-pfw6-9m5x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB