http4s: FollowRedirect exposes sensitive headers on same-authority HTTPS-to-HTTP redirects
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| maven:org.http4s:http4s-client_2.12 | < 0.23.35 | 0.23.35 |
| maven:org.http4s:http4s-client_2.13 | < 0.23.35 | 0.23.35 |
| maven:org.http4s:http4s-client_3 | < 0.23.35 | 0.23.35 |
| maven:org.http4s:http4s-client_2.13 | >= 1.0.0-M2, < 1.0.0-M47 | 1.0.0-M47 |
| maven:org.http4s:http4s-client_3 | >= 1.0.0-M2, < 1.0.0-M47 | 1.0.0-M47 |
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 whe…
Read on GitHub Advisory Database
On 12/01/2026, 03:30 AM, GitHub Advisory Database published "http4s: FollowRedirect exposes sensitive headers on same-authority HTTPS-to-HTTP redirects" (type: Advisory). Severity is "Medium" (medium). Related technologies: Java. CVE: CVE-2026-69212.