Hono: ReDoS in CORS middleware via Access-Control-Request-Headers (CVE-2026-69207)
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hono framework's built-in CORS middleware (hono/cors) when using the default configuration. The middleware parses the Access-Control-Request-Headers header during CORS preflight OPTIONS requests using a regex with quadratic time complexity on input length. An attacker can send crafted preflight requests with long whitespace sequences to consume excessive CPU, causing service degradation or denial of service. This affects versions of Hono prior to 4.12.34. No authentication or special origin is required, and the issue only impacts availability without exposing or modifying data.
AI Analysis
Technical Summary
The Hono CORS middleware (hono/cors) parses the Access-Control-Request-Headers header during preflight OPTIONS requests using a regular expression that exhibits quadratic time complexity (O(n²)) when processing long sequences of whitespace. This occurs when the allowHeaders option is unset or empty, which is the default configuration. An attacker can exploit this by sending a single preflight request with a long whitespace run in the header, causing significant CPU consumption and potentially stalling the service, especially on runtimes with single-threaded execution. This vulnerability leads to denial of service by resource exhaustion without requiring authentication or user interaction. Applications that explicitly set a non-empty allowHeaders value are not affected. The issue affects Hono versions prior to 4.12.34 and has a CVSS 3.1 score of 5.3 (medium severity). A patch is available.
Potential Impact
An unauthenticated attacker can cause denial of service by sending specially crafted CORS preflight requests with long whitespace sequences in the Access-Control-Request-Headers header. This triggers a regular expression with quadratic runtime, consuming excessive CPU and potentially making the service unresponsive. The vulnerability affects availability only; it does not compromise confidentiality or integrity of data.
Mitigation Recommendations
A patch is available for Hono versions prior to 4.12.34. Users should upgrade to version 4.12.34 or later to resolve this issue. Alternatively, configuring the CORS middleware with a non-empty allowHeaders option prevents the vulnerable code path from being executed. No other mitigation is required.
Hono: ReDoS in CORS middleware via Access-Control-Request-Headers (CVE-2026-69207)
Description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hono framework's built-in CORS middleware (hono/cors) when using the default configuration. The middleware parses the Access-Control-Request-Headers header during CORS preflight OPTIONS requests using a regex with quadratic time complexity on input length. An attacker can send crafted preflight requests with long whitespace sequences to consume excessive CPU, causing service degradation or denial of service. This affects versions of Hono prior to 4.12.34. No authentication or special origin is required, and the issue only impacts availability without exposing or modifying data.
CVSS v3.1
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Hono CORS middleware (hono/cors) parses the Access-Control-Request-Headers header during preflight OPTIONS requests using a regular expression that exhibits quadratic time complexity (O(n²)) when processing long sequences of whitespace. This occurs when the allowHeaders option is unset or empty, which is the default configuration. An attacker can exploit this by sending a single preflight request with a long whitespace run in the header, causing significant CPU consumption and potentially stalling the service, especially on runtimes with single-threaded execution. This vulnerability leads to denial of service by resource exhaustion without requiring authentication or user interaction. Applications that explicitly set a non-empty allowHeaders value are not affected. The issue affects Hono versions prior to 4.12.34 and has a CVSS 3.1 score of 5.3 (medium severity). A patch is available.
Potential Impact
An unauthenticated attacker can cause denial of service by sending specially crafted CORS preflight requests with long whitespace sequences in the Access-Control-Request-Headers header. This triggers a regular expression with quadratic runtime, consuming excessive CPU and potentially making the service unresponsive. The vulnerability affects availability only; it does not compromise confidentiality or integrity of data.
Mitigation Recommendations
A patch is available for Hono versions prior to 4.12.34. Users should upgrade to version 4.12.34 or later to resolve this issue. Alternatively, configuring the CORS middleware with a non-empty allowHeaders option prevents the vulnerable code path from being executed. No other mitigation is required.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8j4g-w8fx-2239
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-69207"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a710650bf32cb7a34392dc8
Added to database: 08/03/2026, 21:21:20 UTC
Last enriched: 08/03/2026, 21:23:51 UTC
Last updated: 08/03/2026, 21:23:51 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.