CVE-2026-29086: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-29086 is a cookie attribute injection vulnerability in the Hono Web application framework affecting all versions prior to 4.12.4. The setCookie() utility failed to validate semicolons (;), carriage returns (\r), or newline characters (\n) in the domain and path options when constructing the Set-Cookie header, enabling injection of additional cookie attributes when untrusted input is passed to these fields. The vulnerability was disclosed on March 3, 2026, and patched in version 4.12.4. It carries a CVSS v3.1 base score of 5.4 (Medium) (GitHub Advisory, Hono Security Advisory).

Technical details

The root cause is improper neutralization of CRLF sequences in HTTP headers (CWE-113), as setCookie() built the Set-Cookie header by concatenating option values without sanitizing the domain and path fields. While the cookie value itself was URL-encoded, these options were interpolated directly, allowing characters such as ;, \r, and \n to be included. Because cookie attributes are semicolon-delimited, an attacker who can influence the domain or path parameters can inject additional attributes — such as SameSite, Secure, Domain, or Path — into the resulting header. Modern JavaScript runtimes prevent full CRLF header injection, so the impact is limited to attribute-level manipulation within a single Set-Cookie header. The fix, applied in commit 44ae0c8, adds a validation check that throws an error if these characters are detected in either field (Hono Security Advisory, Patch Commit).

Impact

Successful exploitation allows an attacker to manipulate cookie security attributes — such as overriding SameSite, Secure, Domain, or Path — potentially weakening cookie scoping or bypassing browser-enforced security protections. This could expose session cookies to unintended origins or strip security flags, leading to limited confidentiality and integrity impacts. Availability is not affected, and exploitation requires both application-level misuse (passing user-controlled input into domain or path) and user interaction (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.04% (13th percentile), indicating a low near-term exploitation probability. Exploitation requires an application to pass user-controlled input directly into the domain or path options of setCookie(), which is an application-level misuse condition (GitHub Advisory).

Exploitation steps

  1. Identify a vulnerable target: Locate a Hono-based application (npm package hono < 4.12.4) that passes user-controlled input into the domain or path parameter of setCookie().
  2. Craft a malicious input: Prepare a payload containing a semicolon followed by a desired cookie attribute, e.g., example.com; SameSite=None for the domain field, or /path; Secure for the path field.
  3. Deliver the payload: Submit the crafted input through the application's interface (e.g., a form field, URL parameter, or API request) that feeds into the setCookie() call.
  4. Trigger cookie issuance: Cause the server to issue a Set-Cookie header using the injected value, resulting in a header such as Set-Cookie: session=abc; Domain=example.com; SameSite=None where the attacker controls the injected attribute.
  5. Achieve objective: Depending on the injected attribute, the attacker may broaden cookie scope (e.g., remove Secure flag, change SameSite policy) to facilitate session hijacking or cross-site request forgery in the victim's browser (Hono Security Advisory).

Indicators of compromise

  • Network: HTTP responses containing Set-Cookie headers with unexpected or duplicated attributes (e.g., multiple SameSite, Secure, or Domain directives) that differ from the application's intended cookie configuration.
  • Logs: Server-side application logs showing unusual values in domain or path cookie parameters, particularly those containing semicolons, %3B, %0D, or %0A characters.
  • Application Behavior: Unexpected cookie attribute changes observed in browser developer tools, such as cookies missing the Secure flag or having an unexpectedly broad Domain scope.

Mitigation and workarounds

Upgrade the Hono npm package to version 4.12.4 or later, which rejects any domain or path values containing ;, \r, or \n characters by throwing an error at serialization time. As a workaround for applications that cannot immediately upgrade, developers should sanitize or validate user-controlled input before passing it into the domain or path options of setCookie(). IBM has also released patches for affected products including IBM DevOps Solution Workbench, IBM API Connect, and IBM watsonx Orchestrate that bundle the fixed Hono version (Hono Security Advisory, IBM DevOps Advisory, IBM API Connect Advisory).

Community reactions

The vulnerability was reported by security researcher TarPeg007 and published by Hono maintainer yusukebe on March 3, 2026. No significant broader media coverage or notable community debate has been identified beyond standard advisory distribution across vulnerability databases and scanner platforms such as Qualys (Hono Security Advisory).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-gvwc-5hr5-44p8HIGH7.5
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-5jh3-w3fj-6758LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-5v8x-rm7w-m4c7LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-7pqp-3q23-mwr8LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-3qg4-7mq2-gm93MEDIUMN/A
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management