Skip to main content

Hono EUVDEUVD-2026-54677

| CVE-2026-69207 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-08-03 https://github.com/honojs/hono GHSA-8j4g-w8fx-2239
5.3
CVSS 3.1 · Vendor: https://github.com/honojs/hono
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP OPTIONS preflight to Hono endpoint
  2. Delivery
    Supply whitespace-padded Access-Control-Request-Headers value
  3. Exploit
    Trigger O(n²) regex backtracking in cors() middleware
  4. Execution
    Stall JavaScript event loop for seconds
  5. Persist
    Block all concurrent requests on single-threaded runtime
  6. Impact
    Repeat 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 cors() middleware is active and the allowHeaders option is not configured or is set to an empty value - this is the default out-of-the-box behavior, meaning most Hono CORS deployments are affected without any operator misconfiguration. Applications that pass a non-empty allowHeaders array to cors() skip the header-reflection logic and are not vulnerable. No authentication, session token, or special HTTP origin header is required. The attacker must be able to send HTTP OPTIONS requests to the target service, which is true of any publicly accessible endpoint. Impact is maximized on single-threaded JavaScript runtimes (Cloudflare Workers, Node.js, Deno, Bun) where event-loop stalling blocks all concurrent requests; multi-threaded environments absorb the CPU cost per-thread, reducing but not eliminating availability impact.

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 cors() middleware, setting Access-Control-Request-Headers to a value such as 'x' + ' '.repeat(200000) + 'x' - a pattern explicitly demonstrated in the patch test suite. On a Cloudflare Worker or Deno deployment sharing one execution thread, each such request stalls all concurrent request handling for several seconds; a low-rate stream of these requests from a single client is sufficient to render the service continuously unresponsive to legitimate users.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

hono < 4.12.34

Affected Packages

npm hono fix: 4.12.34

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

Vendor (https://github.com/honojs/hono) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/honojs/hono).

CVSS VectorVendor: https://github.com/honojs/hono

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 190 npm packages depend on hono (63 direct, 128 indirect)

Ecosystem-wide dependent count for version 4.12.34.

Threat Intelligence Overview

EPSS Score
0.7%
Top 52% exploitable
Prevalence
Medium
popular lightweight edge and serverless JavaScript web framework
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy