Skip to main content

Hono EUVDEUVD-2026-54578

| CVE-2026-71848 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-08-07 GitHub_M GHSA-54fx-42gc-7vw4
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send HTTP request with crafted Accept-Language header (N subtags)
  2. Delivery
    Hono routes request through languageDetector middleware
  3. Exploit
    normalizeLanguage() splits tag into N parts and enters O(N²) prefix loop
  4. Execution
    Synchronous event-loop CPU exhaustion
  5. Persist
    Legitimate requests starved and delayed
  6. Impact
    Service availability degraded under sustained request flood

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

The application must use the languageDetector() middleware from Hono versions 4.12.0 through 4.12.33. With the default detector order (query string first, then cookie, then Accept-Language header), no authentication, login, or special privilege is required - any HTTP request reaching the application can supply a crafted language value. The critical bottleneck is triggered by a language tag with a large number of hyphen-separated subtags processed by normalizeLanguage(); the larger the number of subtags, the greater the CPU cost per request. Exploitation is bounded by the JavaScript runtime's request-size limits and by reverse-proxy header-size restrictions: applications behind infrastructure that enforces small Accept-Language header limits (e.g., under 1 KB) experience reduced but potentially still measurable event-loop blocking. Applications that have explicitly configured languageDetector() to use only URL-path detection (disabling query, cookie, and header detectors) and restrict path access with authentication have a significantly reduced attack surface.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (5.3 Medium) accurately reflects a network-reachable, unauthenticated, low-complexity attack with partial availability impact. The quadratic complexity is confirmed by the GHSA advisory and the commit diff, and the default configuration exposes the vulnerable middleware to unauthenticated requests. However, several factors reduce real-world severity: the advisory explicitly notes that JavaScript runtime request-size limits and reverse-proxy configuration cap the cost of any single request; impact is CPU saturation and event-loop blocking rather than crash, data loss, or privilege escalation; and a sustained attack requires repeated requests, creating opportunity for rate-limiting defenses to intervene. No EPSS score was provided in the input data, so exploitation probability is unquantified from that signal. There is no KEV listing and no public POC, indicating no confirmed active exploitation. The gap between raw CVSS score and practical risk is moderate - applications behind CDNs, WAFs, or rate-limiting reverse proxies are substantially less exposed than directly internet-facing Hono services.

Exploit ScenarioDerived

An unauthenticated attacker sends repeated HTTP requests to any endpoint of a Hono application using languageDetector(), each carrying an Accept-Language header with a deeply nested tag such as x-x-x-x-x-...-x containing thousands of hyphen-separated subtags. Each request forces normalizeLanguage() to perform O(N²) string operations synchronously on the JavaScript event loop, consuming CPU and delaying or dropping all concurrent legitimate requests; sustained flooding pushes the service into a degraded or unresponsive state. No public proof-of-concept code has been identified, but the attack is trivially constructible from the published advisory details.

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

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

Alert me

AnalysisAIv1 – Aug 07, 2026

Quadratic-complexity denial of service in Hono's languageDetector middleware (versions 4.12.0-4.12.33) allows unauthenticated remote attackers to exhaust CPU resources by sending HTTP requests with crafted language tags containing large numbers of hyphen-separated subtags. The default middleware configuration accepts language values from query parameters, cookies, and the Accept-Language header without authentication, meaning the vulnerable code path is reachable from the network in any default Hono deployment using this middleware. No public exploit code has been identified and this CVE is not in the CISA KEV catalog, but the attack is trivially constructible from the advisory description; the fix was released in version 4.12.34.

RemediationAI

Upgrade the hono npm package to version 4.12.34 or later, which replaces the quadratic prefix-reconstruction loop with a linear scan over the bounded supported-languages list (patch commit f70e2c31684387b3231cc38512a31df6ca76a1c7, available at https://github.com/honojs/hono/commit/f70e2c31684387b3231cc38512a31df6ca76a1c7; full release at https://github.com/honojs/hono/releases/tag/v4.12.34). If immediate upgrade is not feasible, disable the languageDetector() middleware entirely as a compensating control - trade-off is loss of automatic language negotiation, which may break internationalization features. Alternatively, enforce strict length limits on the Accept-Language header and language-related query parameters at the reverse proxy or WAF layer (e.g., reject headers exceeding 256 characters); this reduces per-request cost but does not fully eliminate the issue as the advisory confirms inputs within typical runtime limits can still cause event-loop blocking. Rate-limiting unauthenticated requests at the edge provides an additional layer of defense without application changes.

Affected VersionsENISA

hono 4.12.0, < 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 (CPE: cpe:2.3:a:honojs:hono:*:*:*:*:*:*:*:*) is a lightweight TypeScript/JavaScript web framework targeting any JS runtime including Cloudflare Workers, Deno, Bun, and Node.js. The root cause is CWE-407 (Algorithmic Complexity): the normalizeLanguage() function in the languageDetector middleware splits a user-supplied language tag on hyphens and reconstructs every shorter prefix via parts.slice(0, i).join('-') inside a loop, producing O(N²) string operations for an input with N subtags. Because language values are sourced from user-controlled HTTP inputs - Accept-Language header, query parameters, cookies, or URL path, with all three of the first options enabled by default - the attacker-controlled input is fed directly into this quadratic loop. The fix (commit f70e2c3) inverts the algorithm to iterate over the bounded list of configured supported languages rather than over prefixes of the unbounded attacker input, reducing complexity to O(M) where M is the number of configured languages.

Know when Hono gets its next vulnerability

  • 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 (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Network-accessible via default HTTP inputs with no auth required; A:L reflects partial availability impact bounded by runtime request-size limits rather than full service collapse.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Aug 07, 2026 - 19:02 EUVD

DescriptionCVE.org

Hono is a Web application framework that provides support for any JavaScript runtime. From 4.12.0 to 4.12.33, the languageDetector middleware is vulnerable to algorithmic complexity denial of service when processing a crafted language tag containing a large number of hyphen separated subtags. To implement progressive language tag truncation, normalizeLanguage() repeatedly calls parts.slice(0, i).join('-') for every possible prefix, so the total amount of string processing grows quadratically with the number of subtags. Language values may come from a query parameter, cookie, Accept-Language header, or URL path, depending on the detector configuration, and the default detector order enables query string, cookie, and header detection, so applications using languageDetector() may expose this processing to unauthenticated requests. An attacker may repeatedly send requests containing long, hyphen separated language tags, causing excessive CPU consumption and preventing unrelated requests from being processed. This issue is fixed in version 4.12.34.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 7 npm packages depend on hono (4 direct, 3 indirect)

Ecosystem-wide dependent count for version 4.12.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular JS edge/serverless framework, growing but not ubiquitous
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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 Yes
EPSS 0.3%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
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.

More in Hono

View all
CVE-2025-62610 HIGH POC
8.1 Oct 22

Improper authorization in Hono's JWT Auth Middleware (hono/jwt in the npm package 'hono', versions 1.1.0 through 4.10.1)

CVE-2024-32652 HIGH POC
7.5 Apr 19

The adapter @hono/node-server allows you to run your Hono application on Node.js. Rated high severity (CVSS 7.5), this v

CVE-2024-48913 MEDIUM POC
5.9 Oct 15

Hono, a web framework, prior to version 4.6.5 is vulnerable to bypass of cross-site request forgery (CSRF) middleware by

CVE-2026-47676 MEDIUM POC
5.3 May 28

Path prefix stripping in Hono's app.mount() API exposes mounted sub-applications to incorrect routing due to a raw-vs-de

CVE-2024-32869 MEDIUM POC
5.3 Apr 23

Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.3),

CVE-2024-23340 MEDIUM POC
5.3 Jan 22

@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Rated medium severity (CVSS 5.3),

CVE-2024-43787 MEDIUM POC
5.0 Aug 22

Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.0),

CVE-2026-71850 MEDIUM POC
4.8 Aug 07

Cross-user HTML disclosure in Hono's server-side rendering affects all applications using hono/jsx with memo()-wrapped c

CVE-2023-50710 MEDIUM POC
4.3 Dec 14

Hono is a web framework written in TypeScript. Rated medium severity (CVSS 4.3), this vulnerability is remotely exploita

CVE-2026-27700 HIGH
8.2 Feb 25

Hono is a Web application framework that provides support for any JavaScript runtime. [CVSS 8.2 HIGH]

CVE-2026-22818 HIGH
8.2 Jan 13

Hono versions before 4.11.4 allow JWT algorithm confusion attacks through improper algorithm validation in the JWK/JWKS

CVE-2026-22817 HIGH
8.2 Jan 13

Hono before version 4.11.4 contains a JWT algorithm confusion vulnerability in its JWK/JWKS verification middleware that

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