CVE-2026-69212
http4s: FollowRedirect exposes sensitive headers on same-authority HTTPS-to-HTTP redirects
Description
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)
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-client_2.12 | < 0.23.35 | 0.23.35 |
| org.http4s » http4s-client_2.13 | < 0.23.35>= 1.0.0-M2, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-client_3 | < 0.23.35>= 1.0.0-M2, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
84% of the dependent artifacts (660) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 12,526 |
| 2 hops | 16,131 |
| 3 hops | 6,626 |
| 4 hops | 3,490 |
| 5 hops | 7,244 |
| 6 hops | 5,117 |
Most used dependents
- org.http4s » http4s-blaze-client252 usages
- org.http4s » http4s-ember-client146 usages
- net.shrine » shrine-util39 usages
- net.shrine » shrine-protocol32 usages
- io.chrisdavenport » http4s-grpc23 usages
- org.http4s » http4s-async-http-client20 usages
- org.http4s » http4s-jdk-http-client20 usages
- io.github.pityka » tasks-core17 usages
- io.chrisdavenport » http4s-grpc-google-common-protos17 usages
- es.weso » srdfjena17 usages
- net.shrine » shrine-qep16 usages
- com.47deg » github4s16 usages
- net.shrine » shrine-auth15 usages
- org.http4s » http4s-dom15 usages
- net.playq » tk-test15 usages
Computed from the dependency graph of build 20261203.1441 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-69212 | nvd.nist.gov |
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-2rgg-r783-mrx4 | github.com |
| Web | http4s/http4s commit 6e82571 | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
