CVE-2026-71848
Medium · 5.3CVSS
5.3
EPSS
0.5%
Published
Aug 7, 2026
CISA due date
—
Cloudanix analysis
A specially crafted language setting in a web request can make affected applications waste processing power and become slow or unavailable.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Web Framework
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Hono versions 4.12.0 through 4.12.33 contain an algorithmic complexity denial-of-service flaw in the languageDetector middleware. When a language value contains many hyphen-separated subtags, normalizeLanguage() repeatedly performs prefix slicing and joining, causing quadratic string-processing cost as the number of subtags grows. If an application enables languageDetector(), attacker-controlled values may be accepted from the query string, cookie, Accept-Language header, or URL path depending on configuration; the default detector order includes query, cookie, and header sources. Exploitation does not require authentication or user interaction and can cause excessive CPU consumption, slowing or blocking unrelated request handling.
Why it matters to the business
Public web services using affected Hono versions and languageDetector() may become slow or unavailable when exposed to repeated crafted requests. The main consequence is service degradation or outage rather than data theft or data modification. Because the issue is recently published, has low attack complexity, and can be triggered remotely without authentication, internet-facing applications should treat it as an availability risk even though it is not currently listed in CISA KEV and there is no known ransomware association.
How an attack unfolds
An attacker identifies a Hono-based application that uses the languageDetector middleware. They then send HTTP requests containing an unusually long language tag made of many hyphen-separated components, such as through a query parameter, Cookie header, Accept-Language header, or language-bearing URL path segment. When the middleware processes the value, it progressively truncates and normalizes the tag by repeatedly slicing and joining increasingly long prefixes. This causes CPU work to grow disproportionately with input size. By repeating these requests, potentially in parallel, the attacker can consume event-loop/runtime CPU and reduce the application’s ability to handle normal traffic, resulting in elevated latency, request timeouts, or partial denial of service.
How to fix it
Upgrade Hono to version 4.12.34 or later. The vulnerable range is 4.12.0 through 4.12.33. If immediate upgrade is not possible, reduce exposure by disabling languageDetector() where it is not required, limiting detector sources to trusted or bounded inputs, enforcing maximum length and maximum hyphen-subtag counts for language values before they reach the middleware, rejecting malformed or excessively long Accept-Language, Cookie, query, and path language values at the edge, and applying rate limits to requests carrying language-selection inputs. Web application firewalls, reverse proxies, and API gateways can provide temporary protection by blocking or truncating abnormally long hyphen-separated language tags, but these should not replace the package upgrade.
How to confirm the fix worked
Confirm dependency resolution shows Hono version 4.12.34 or later in package lockfiles and deployed artifacts, not only in source manifests. Review application code for use of languageDetector() and verify any remaining language inputs have explicit length and structure limits. In staging, send benign test requests with long hyphen-separated language values in the configured detector locations and confirm they are rejected quickly or processed without abnormal CPU spikes. Validate that edge controls, if used, block oversized Accept-Language headers, cookies, query parameters, or path segments before the application runtime processes them.
Typical attack path
- Find an internet-accessible application likely using Hono and locale/language detection.
- Send probe requests with oversized hyphen-separated language values in common detector locations such as query parameters, Cookie, Accept-Language, or URL path.
- Observe latency increases, timeouts, or error responses that suggest expensive language normalization.
- Automate repeated crafted requests with very long language-tag strings.
- Sustain or distribute the request stream to consume CPU and degrade service for legitimate users.
How to detect it
To determine whether exploitation was attempted, review HTTP access logs, CDN/WAF logs, reverse proxy logs, and application telemetry for requests containing unusually long hyphen-separated language values. Focus on query strings used for locale or language selection, Cookie headers carrying language preferences, Accept-Language headers, and URL paths with language-like segments. Look for bursts of requests from the same source or distributed sources where the language value contains many repeated hyphens, has an abnormal total length, or is paired with elevated response latency, 408/429/499/500/502/503/504 responses, CPU spikes, event-loop lag, or container restarts. Because this is an algorithmic DoS, there may be no persistent file artifact; evidence is most likely in request logs and performance metrics. No public threat actors are currently associated with this issue based on the provided data.
- Accept-Language header containing an unusually long value with many hyphen-separated subtags
- Query parameter value containing dozens or hundreds of hyphen-separated language subtags
- Cookie header containing a language or locale value with dozens or hundreds of hyphen-separated subtags
- URL path segment containing an abnormally long hyphen-separated language tag
- Repeated HTTP requests with long strings matching pattern [A-Za-z]{1,8}(-[A-Za-z0-9]{1,8}){50,}
- Requests containing locale=
- Requests containing lang=
- Requests containing language=
- Requests containing hl=
- HTTP 503 responses correlated with oversized Accept-Language headers
- HTTP 504 responses correlated with oversized Accept-Language headers
What your security team should do
- Inventory applications and services using Hono, especially versions 4.12.0 through 4.12.33.
- Prioritize internet-facing services that call languageDetector() or support locale selection via query string, cookies, Accept-Language headers, or URL paths.
- Upgrade Hono to 4.12.34 or later and redeploy affected services.
- Add input validation for language tags, including maximum total length and maximum number of hyphen-separated subtags.
- Deploy temporary edge filtering and rate limiting for oversized language-related request fields until upgrades are complete.
- Monitor CPU saturation, event-loop lag, request latency, 4xx/5xx spikes, and repeated requests containing unusually long hyphen-separated language values.
- Review recent web access logs since publication for possible probing or denial-of-service attempts.
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-119741 rsync through 3.5.1 contains a denial of service vulnerability in the delta-transfer… CWE-407
- CVE-2026-121437 Mistune from 3.3.0 before 3.3.4 contains a denial of service vulnerability that allows… CWE-407
- CVE-2026-62160 Daptin is a GraphQL/JSON-API headless CMS. CWE-407
- CVE-2026-87768 DateTime::Lite versions before 0.8.1 for Perl allow CPU exhaustion via a per-day loop… CWE-407
- CVE-2026-119196 pyasn1 is a generic ASN.1 library for Python. CWE-407
- CVE-2026-119194 pyasn1 is a generic ASN.1 library for Python. CWE-407
- CVE-2026-119195 pyasn1 is a generic ASN.1 library for Python. CWE-407
- CVE-2026-119197 pyasn1 is a generic ASN.1 library for Python. CWE-407