Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP OPTIONS preflight to Hono endpoint
-
DeliverySupply whitespace-padded Access-Control-Request-Headers value
-
ExploitTrigger O(n²) regex backtracking in cors() middleware
-
ExecutionStall JavaScript event loop for seconds
-
PersistBlock all concurrent requests on single-threaded runtime
-
ImpactRepeat at low rate to sustain denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerable code path is reached only when the Hono |
| Impact | The vendor-assigned CVSS 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) is technically accurate but understates practical availability impact on single-threaded runtimes. A:L implies partial availability degradation, yet a single well-crafted request can block the event loop entirely on Cloudflare Workers, Deno, or Bun, producing complete service disruption - closer to A:H in realistic deployments. No EPSS data was provided in the input, so exploitation probability cannot be quantified. The absence of a CISA KEV listing and no known dedicated exploit tool moderates urgency slightly, but the fully public advisory and commit diff supply all information needed for trivial exploitation. The attack is automatable (AV:N, AC:L, PR:N, no special targeting required), and the default configuration is the vulnerable one, meaning the vast majority of Hono CORS deployments are affected without any misconfiguration on the operator's part. Risk is elevated for edge/serverless deployments sharing a single execution thread; traditional multi-threaded servers absorb the impact per-thread, reducing but not eliminating the DoS potential. |
| Exploit ScenarioDerived | An unauthenticated attacker sends HTTP OPTIONS requests to any Hono endpoint protected by the default |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 03, 2026
ReDoS in Hono's built-in CORS middleware allows unauthenticated remote attackers to stall the JavaScript event loop via crafted OPTIONS preflight requests, degrading or denying service to all concurrent users. The affected npm package hono versions below 4.12.34 using the default cors() configuration are vulnerable - no authentication, special origin, or user interaction is required. No CISA KEV listing and no dedicated public exploit tool have been identified at time of analysis, but the attack is trivially reproducible given the fully public advisory and commit diff.
RemediationAI
Upgrade to Hono v4.12.34 or later, which is confirmed fixed per the GitHub release tag and commit 93fc250d8b4df58ea542cb945171de8013d5e6d5. The fix is available at https://github.com/honojs/hono/releases/tag/v4.12.34 and documented in the advisory at https://github.com/honojs/hono/security/advisories/GHSA-8j4g-w8fx-2239. If an immediate upgrade is not possible, configure cors() with an explicit non-empty allowHeaders array (e.g., allowHeaders: ['Content-Type', 'Authorization']); this bypasses the vulnerable code path entirely, though it requires auditing your CORS policy to ensure all required headers are listed - unlisted headers will not be reflected. As a defense-in-depth measure, configure the upstream reverse proxy or load balancer to enforce a low maximum size on the Access-Control-Request-Headers header value (e.g., reject values exceeding 512 bytes), which limits per-request CPU consumption without fully remediating the flaw.
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 JavaScript/TypeScript web framework targeting edge runtimes including Cloudflare Workers, Deno, Bun, and Node.js. The vulnerable component is the built-in hono/cors middleware (pkg:npm/hono). During CORS preflight handling, when allowHeaders is not configured (the default), the middleware reflects the attacker-controlled Access-Control-Request-Headers header by splitting it with the regular expression /\s*,\s*/. CWE-1333 (Inefficient Regular Expression Complexity) applies: this pattern exhibits catastrophic backtracking when the input contains a long run of whitespace without a comma delimiter, causing O(n²) CPU work relative to input length. Because HTTP header values can reach 8-16 KB depending on server configuration, a single OPTIONS request can stall the JavaScript event loop for seconds. On single-threaded runtimes - Node.js, Deno, Bun, Cloudflare Workers - a blocked event loop freezes all concurrent request processing. The patch (commit 93fc250d8b4df58ea542cb945171de8013d5e6d5) replaces requestHeaders.split(/\s*,\s*/) with the safe equivalent requestHeaders.split(',').map((h) => h.trim()).
Know when the next one hits your stack
- 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:N/A:L
Network-accessible with no privileges or interaction required; availability rated High because event-loop stalling on single-threaded runtimes causes complete service disruption per request.
Primary rating from Vendor (https://github.com/honojs/hono).
CVSS VectorVendor: https://github.com/honojs/hono
DescriptionCVE.org
Summary
The built-in CORS middleware (hono/cors) parses the attacker-controlled Access-Control-Request-Headers request header during a preflight (OPTIONS) request using a regular expression whose running time is quadratic in the input length. A single request carrying a long run of whitespace can consume seconds of CPU, and repeated requests can render the service unresponsive. This parsing runs under the default configuration.
Details
On a CORS preflight, when allowHeaders is not configured - the default - the middleware reflects and parses the Access-Control-Request-Headers value. The parser used a whitespace-tolerant regular expression whose backtracking makes the work grow quadratically (O(n²)) with the length of the value when it contains a long whitespace sequence without a delimiter.
Because the header value is bounded only by the deployment's maximum HTTP header size, a single preflight can block request processing for a noticeable amount of time; on runtimes that share one execution thread across requests, this stalls concurrent requests as well. No authentication, special origin, or user interaction is required.
This issue arises for any application using cors() with the default (or an empty) allowHeaders. Applications that set a non-empty allowHeaders do not reach the affected path.
Impact
An unauthenticated attacker can send preflight requests that each consume disproportionate CPU relative to their size, degrading or denying service. This is a denial-of-service issue only; it does not expose or modify data.
Blast Radius
ecosystem impact- 190 npm packages depend on hono (63 direct, 128 indirect)
Ecosystem-wide dependent count for version 4.12.34.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-54677
GHSA-8j4g-w8fx-2239
NVD
CVE.org
EPSS
VulDB
Exploit-DB