Summary
http4s: FollowRedirect exposes sensitive headers on same-authority HTTPS-to-HTTP redirects
Advisory details
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
- https://github.com/advisories/GHSA-2rgg-r783-mrx4
- https://github.com/http4s/http4s/security/advisories/GHSA-2rgg-r783-mrx4
- https://nvd.nist.gov/vuln/detail/CVE-2026-69212
- https://github.com/http4s/http4s/commit/6e825719b8d2f1538f2c49089c2dc81321a833b4
- https://github.com/http4s/http4s/releases/tag/v0.23.35
- https://github.com/http4s/http4s/releases/tag/v1.0.0-M47
Related vulnerabilities
All Supply chain →- CRITICALCVE-2026-114516
Etherpad: Pre-auth arbitrary file read
- HIGHCVE-2026-59988
django-docutils unsafe Docutils defaults allow local file disclosure, SSRF, and stored XSS
- MEDIUMCVE-2026-129233
NLTK: StreamBackedCorpusView constructor os.stat leaks out-of-root file existence, size, and mtime bypassing pathsec ENFORCE
- MEDIUMCVE-2026-119346
Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes
- MEDIUMCVE-2026-69139
djangocms-moderation: Moderation comments disclosed to non-participant staff via the admin changelist
- CRITICALCVE-2026-53998
Phoenix: Format String Injection in applyChatTemplate