Vulnerability advisory
CVE-2026-48595
Authorization header leaks to third-party origin on cross-origin redirect in Tesla.Middleware.FollowRedirects
Also known as EEF-CVE-2026-48595GHSA-9m9w-gxf7-rh8m
- CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/elixir-tesla/tesla ↗ | |
| 9341ac3a87791b3aee143088a2d43e78109a8aaa to before 2eb7a78948f9c3b18509bf28bdc729e07f46e0dc | 2eb7a78948f9c3b18509bf28bdc729e07f46e0dc |
| Not specified | 2d937d5813d7cda5cd726f41824985fb655c920f |
| Not specified | db963dba67651b9abd1fc420a1d9679cf6efe182 |
Also listed as affected (39)
| |
Description
Improper Handling of Case Sensitivity vulnerability in elixir-tesla tesla allows credential leakage to a third-party origin on cross-origin redirects.
Tesla.Middleware.FollowRedirects strips security-sensitive headers on cross-origin redirects using a case-sensitive string comparison against a lowercase filter list (@filter_headers ["authorization", "host"]). HTTP header names are case-insensitive per RFC 7230, but Tesla preserves header keys verbatim as supplied by the caller without normalizing case. A header set as {"Authorization", "Bearer ..."} (the RFC 7235 canonical casing used by virtually all HTTP libraries and documentation) does not match the lowercase filter entry and is forwarded to the redirect destination. An attacker who can control or influence a Location: response seen by the client (via their own endpoint, a redirect-open upstream, or a compromised origin) receives the bearer token or other Authorization material on the cross-origin request.
This issue affects tesla: from 1.4.0 before 1.18.3.
References
- Webcna.erlef.org/cves/CVE-2026-48595.html ↗
- Webgithub.com ↗
- Webosv.dev/vulnerability/EEF-CVE-2026-48595 ↗
- Webrepo.hex.pm ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48595.json ↗
- Advisorygithub.com/elixir-tesla/tesla/security/advisories/GHSA-9m9w-gxf7-rh8m ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-48595 ↗
- Fixgithub.com/elixir-tesla/tesla/commit/2d937d5813d7cda5cd726f41824985fb655c920f ↗
- Fixgithub.com/elixir-tesla/tesla/commit/db963dba67651b9abd1fc420a1d9679cf6efe182 ↗
- Packagegithub.com/elixir-tesla/tesla ↗