Description
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.
Published: 2026-05-28
Score: 4.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Hono web framework’s serialize() function validates the domain and path options of cookies against characters that would corrupt the Set‑Cookie header syntax, but it does not validate the sameSite and priority options. When user‑controlled input is used for these options, an attacker can influence the Set‑Cookie header to include custom attributes. The attacker can set arbitrary cookie attributes such as SameSite, Secure, HttpOnly or other options, which may affect the security of user sessions. The impact is that an attacker can alter or forge cookie settings for requests to the application.

Affected Systems

Users of the Hono framework (vendor honojs:hono) with versions older than 4.12.21 are affected. The vulnerability exists in the cookie serialization routine shipped with Hono before version 4.12.21. Upgrading to 4.12.21 or later fixes the flaw.

Risk and Exploitability

With a CVSS score of 4.3 the vulnerability is considered moderate. The EPSS score is not available and the issue is not listed in the CISA KEV catalog. The likely attack vector is a remote attacker submitting crafted input that becomes part of the sameSite or priority cookie option, resulting in a manipulated Set‑Cookie header in the HTTP response. No additional prerequisites are mentioned in the advisory, so exploitation would rely primarily on the ability to influence cookie option values through legitimate application input.

Generated by OpenCVE AI on May 28, 2026 at 18:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Hono framework to version 4.12.21 or later
  • If an upgrade is not immediately possible, sanitize or reject user input for the sameSite and priority cookie options to prevent injection of malicious attributes
  • Ensure that cookie option values are set only from trusted, validated sources and avoid using client‑supplied data for these options

Generated by OpenCVE AI on May 28, 2026 at 18:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 28 May 2026 17:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection
Weaknesses CWE-113
CWE-1287
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-28T19:17:17.728Z

Reserved: 2026-05-19T21:10:38.798Z

Link: CVE-2026-47675

cve-icon Vulnrichment

Updated: 2026-05-28T19:16:55.902Z

cve-icon NVD

Status : Received

Published: 2026-05-28T17:16:32.537

Modified: 2026-05-28T17:16:32.537

Link: CVE-2026-47675

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T19:00:16Z

Weaknesses