{"id":"CVE-2026-69212","aliases":["CVE-2026-69212","GHSA-2rgg-r783-mrx4"],"related":[],"kind":"vulnerability","state":"published","title":"Http4s: FollowRedirect middleware leaks credentials over https->http same-authority redirect","summary":"Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The FollowRedirect client middleware strips Authorization and Cookie headers only when a redirect changes authority, but authority comparison excludes the URI scheme. A same-authority redirect from HTTPS to HTTP therefore preserves credentials and transmits them over a plaintext connection. An attacker who can induce the downgrade and observe the network can capture those sensitive headers from applications using FollowRedirect. This issue is fixed in versions 0.23.35 and 1.0.0-M47.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The FollowRedirect client middleware strips Authorization and Cookie headers only when a redirect changes authority, but authority comparison excludes the URI scheme. A same-authority redirect from HTTPS to HTTP therefore preserves credentials and transmits them over a plaintext connection. An attacker who can induce the downgrade and observe the network can capture those sensitive headers from applications using FollowRedirect. This issue is fixed in versions 0.23.35 and 1.0.0-M47.","source":"cvelist"},{"lang":"en","text":"The `FollowRedirect` client middleware strips sensitive headers (e.g., `Authorization`, `Cookie`)\nheaders 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.\n\n## Impact\n\nDisclosure 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.\n\nThe 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.\n\n## Preconditions\n\n- Application uses the `FollowRedirect` client middleware.\n- The contacted server returns an https->http redirect to the same authority (misconfiguration or an injected `Location`).\n- An attacker can observe the plaintext HTTP hop.\n\n## Workarounds\n\n- Avoid `FollowRedirect` for clients that carry credentials to servers that may\nredirect to `http://`\n- Pin a `sensitiveHeaderFilter` and audit redirect targets.\n\n## Resources\n\n- [CVE-2022-27776](https://www.cve.org/CVERecord?id=CVE-2022-27776): cURL\n- [CVE-2018-18074](https://www.cve.org/CVERecord?id=CVE-2018-18074): requests (Python)","format":"markdown","source":"ghsa"}],"published":"2026-09-15T19:09:57.168Z","modified":"2026-11-30T18:45:06.024Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-319"],"affected":[{"ranges":[{"version":"< 0.23.35","status":"affected"},{"version":">= 1.0.0-M1, < 1.0.0-M47","status":"affected"}],"vendor":"http4s","product":"http4s","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.35"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_2.12","purl":"pkg:maven/org.http4s/http4s-client_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.35"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.35"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0-M2","status":"affected","fixed":"1.0.0-M47"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_2.13","purl":"pkg:maven/org.http4s/http4s-client_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0-M2","status":"affected","fixed":"1.0.0-M47"}],"ecosystem":"Maven","package":"org.http4s:http4s-client_3","purl":"pkg:maven/org.http4s/http4s-client_3","source":"ghsa"}],"references":[{"url":"https://github.com/http4s/http4s/security/advisories/GHSA-2rgg-r783-mrx4","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4s/http4s/commit/6e825719b8d2f1538f2c49089c2dc81321a833b4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4s/http4s/releases/tag/v0.23.35","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/http4s/http4s/releases/tag/v1.0.0-M47","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69212","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/http4s/http4s","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-15T19:30:31.142Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-69212","url":"https://www.cve.org/CVERecord?id=CVE-2026-69212","licence":"CVE Terms of Use","modified":"2026-09-15T19:30:41.069Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2rgg-r783-mrx4","url":"https://github.com/advisories/GHSA-2rgg-r783-mrx4","licence":"CC-BY-4.0","modified":"2026-11-30T18:45:06.024Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-69212","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69212","licence":"Public domain","modified":"2026-09-16T20:38:04.943Z"}],"updatedAt":"2026-11-30T19:37:24.800Z","epss":{"score":0.00235,"percentile":0.15521,"date":"2026-12-01T12:00:22.000Z"}}