http4s: FollowRedirect exposes sensitive headers on same-authority HTTPS-to-HTTP redirects
Package Affected versions Patched versions Description The FollowRedirect client middleware strips sensitive headers (e.g., Authorization, Cookie) headers only when the redirect target has a different
Package
org.http4s:http4s-client_2.12 (Maven)Affected versions
< 0.23.35Patched versions
0.23.35 org.http4s:http4s-client_2.13 (Maven) < 0.23.35 >= 1.0.0-M2, < 1.0.0-M47 0.23.35 1.0.0-M47 org.http4s:http4s-client_3 (Maven) < 0.23.35 >= 1.0.0-M2, < 1.0.0-M47 0.23.35 1.0.0-M47Description
The FollowRedirect client middleware strips sensitive headers (e.g., Authorization, Cookie)
headers only when the redirect target has a different authority. Because authority excludes the scheme, a redirect from https://example.com to http://example.com (same authority) is treated as same-origin, and the sensitive headers are propagated over the plaintext hop where a network observer can capture them.
Impact
Disclosure of Authorization / Cookie credentials in cleartext to a network observer when a server issues (or is induced to issue) an https->http same-authority redirect.
The CVSS base (5.9) reflects a confidentiality-only impact. The practical severity is low, because exploitation requires both a same-authority scheme downgrade in a redirect and an on-path observer.
Preconditions
- Application uses the
FollowRedirectclient middleware. - The contacted server returns an https->http redirect to the same authority (misconfiguration or an injected
Location). - An attacker can observe the plaintext HTTP hop.
Workarounds
- Avoid
FollowRedirectfor clients that carry credentials to servers that may
redirect tohttp:// - Pin a
sensitiveHeaderFilterand audit redirect targets.
Resources
- CVE-2022-27776: cURL
- CVE-2018-18074: requests (Python)
References
- GHSA-2rgg-r783-mrx4
- https://nvd.nist.gov/vuln/detail/CVE-2026-69212
- http4s/http4s@6e82571
- https://github.com/http4s/http4s/releases/tag/v0.23.35
- https://github.com/http4s/http4s/releases/tag/v1.0.0-M47
Severity
Moderate 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 Unchanged Confidentiality High Integrity None 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:U/C:H/I:N/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. (13th percentile)Weaknesses
Weakness CWE-200Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. Learn more on MITRE. Weakness CWE-319Cleartext Transmission of Sensitive Information
The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. Learn more on MITRE.CVE ID
CVE-2026-69212GHSA ID
GHSA-2rgg-r783-mrx4Source code
http4s/http4sCredits
-
rossabaker Analyst
-
samspills Remediation reviewer
Uh oh!
There was an error while loading. Please reload this page.
See something to contribute? Suggest improvements for this vulnerability.