http4s: FollowRedirect exposes sensitive headers on same-authority HTTPS-to-HTTP redirects
- CVE-2026-69212
- GHSA-2rgg-r783-mrx4
- EUVD-2026-79186
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 `FollowRedirect` client 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 `FollowRedirect` for clients that carry credentials to servers that may redirect to `http://` - Pin a `sensitiveHeaderFilter` and audit redirect targets. ## Resources - [CVE-2022-27776](https://www.cve.org/CVERecord?id=CVE-2022-27776): cURL - [CVE-2018-18074](https://www.cve.org/CVERecord?id=CVE-2018-18074): requests (Python)
Text from the GitHub Advisory record.
Recommendation
http4s
- If you run 1.0.xupdate to 1.0.0-M47 or laterPatch update: breaking changes are unlikely
- If you run a version before 0.23.35update to 0.23.35 or later
org.http4s:http4s-client_2.12
- If you run a version before 0.23.35update to 0.23.35 or laterorg.http4s:http4s-client_2.12 0.23.35 on its registry (opens in a new tab)
org.http4s:http4s-client_2.13
- If you run 1.0.xupdate to 1.0.0-M47 or laterPatch update: breaking changes are unlikelyorg.http4s:http4s-client_2.13 1.0.0-M47 on its registry (opens in a new tab)
- If you run a version before 0.23.35update to 0.23.35 or laterorg.http4s:http4s-client_2.13 0.23.35 on its registry (opens in a new tab)
org.http4s:http4s-client_3
- If you run 1.0.xupdate to 1.0.0-M47 or laterPatch update: breaking changes are unlikelyorg.http4s:http4s-client_3 1.0.0-M47 on its registry (opens in a new tab)
- If you run a version before 0.23.35update to 0.23.35 or laterorg.http4s:http4s-client_3 0.23.35 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
http4s
Affected versions Fixed in from 1.0.0-M1 to before 1.0.0-M47 1.0.0-M47 before 0.23.35 0.23.35 org.http4s:http4s-client_2.12Maven
Affected versions Fixed in before 0.23.35 0.23.35 org.http4s:http4s-client_2.13Maven
Affected versions Fixed in from 1.0.0-M2 to before 1.0.0-M47 1.0.0-M47 before 0.23.35 0.23.35 org.http4s:http4s-client_3Maven
Affected versions Fixed in from 1.0.0-M2 to before 1.0.0-M47 1.0.0-M47 before 0.23.35 0.23.35
Product versions from the ENISA EUVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.