http4s: Ember Server Accepts Duplicate Content-Length Headers
Package Affected versions Patched versions Description Ember's HTTP/1.1 parser accepts a request that carries two Content-Length headers with differing values, accepting the latter value.
RFC 9112 §6.
Package
org.http4s:http4s-ember-core_2.12 (Maven)Affected versions
< 0.23.35Patched versions
0.23.35 org.http4s:http4s-ember-core_2.13 (Maven) < 0.23.35 >= 1.0.0-M2, < 1.0.0-M47 0.23.35 1.0.0-M47 org.http4s:http4s-ember-core_3 (Maven) >= 1.0.0-M2, < 1.0.0-M47 < 0.23.35 1.0.0-M47 0.23.35Description
Ember's HTTP/1.1 parser accepts a request that carries two Content-Length headers with differing values, accepting the latter value. RFC 9112 §6.3 requires a recipient to respond 400 (Bad Request) and close the connection.
When an Ember server is deployed behind a intermediary that frames on a different occurrence of the header, HTTP request smuggling (CL.CL desync) is possible.
Impact
Server
The server is vulnerable to HTTP request smuggling when deployed as an origin behind an intermediary that maintains keep-alive connections and frames requests using a different Content-Length value than Ember, which uses a last-wins policy.
- Front-end security bypass: the smuggled request reaches paths the intermediary might have blocked, with attacker-chosen method and headers.
- Cross-user request hijack: a dangling smuggled prefix concatenates with the next victim's request on the shared backend socket, capturing its sensitive headers (e.g.,
CookieorAuthorization). - Cache poisoning: the smuggled response is associated with the next request key in a caching proxy.
Client
The same parser is used by the client and applies to the response path. The threat is narrower and less severe than the server:
- The upstream server (origin or intermediary) must be malicious or compromised.
- The client must be deployed as a proxy shared across multiple downstream consumers. If the misframed bytes are attached to a different downstream user's request on a pooled connection, cross-user response hijack or cache poisoning are possible.
Preconditions
- Any
EmberServerBuilderHTTP/1.1 config behind an intermediary - Unauthenticated remote attacker able to reach the intermediary
- That intermediary forwards at least two differing
Content-Lengthheaders without rejecting and frames on a different occurrence of the header - Intermediary keeps persistent upstream connections
Patches
The issue is addressed in http4s-0.23.35.
Workarounds
- Use a strictly-conformant intermediary that rejects differing
Content-Lengthwith400
Resources
References
- GHSA-p83c-4wj9-p6w9
- https://nvd.nist.gov/vuln/detail/CVE-2026-69217
- http4s/http4s@24e8d34
- https://github.com/http4s/http4s/releases/tag/v0.23.35
- https://github.com/http4s/http4s/releases/tag/v1.0.0-M47
Severity
High CVSS overall score This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS). / 10CVSS v3 base metrics
Attack vector Network Attack complexity High Privileges required None User interaction None Scope Changed Confidentiality High Integrity High Availability None CVSS v3 base metrics Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability. Attack complexity: More severe for the least complex attacks. Privileges required: More severe if no privileges are required. User interaction: More severe when no user interaction is required. Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope. Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user. Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user. Availability: More severe when the loss of impacted component availability is highest. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:NEPSS score
Exploit Prediction Scoring System (EPSS) This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST. (36th percentile)Weaknesses
Weakness CWE-444Inconsistent Interpretation of HTTP Requests
The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. Learn more on MITRE.CVE ID
CVE-2026-69217GHSA ID
GHSA-p83c-4wj9-p6w9Source code
http4s/http4sCredits
-
ERobertGII Finder
-
rossabaker Analyst
Uh oh!
There was an error while loading. Please reload this page.
See something to contribute? Suggest improvements for this vulnerability.