CVE-2026-48595
Improper Handling of Case Sensitivity vulnerability in elixir-tesla …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- cna.erlef.org/cves/CVE-2026-48595.html
- github.com/elixir-tesla/tesla/commit/db963dba67651b9abd1fc420a1d9679cf6efe182
- github.com/elixir-tesla/tesla/security/advisories/GHSA-9m9w-gxf7-rh8m
- osv.dev/vulnerability/EEF-CVE-2026-48595
- nvd.nist.gov/vuln/detail/CVE-2026-48595
- github.com/advisories/GHSA-9m9w-gxf7-rh8m
- github.com/elixir-tesla/tesla/commit/2d937d5813d7cda5cd726f41824985fb655c920f
- nvd.nist.gov/vuln/detail/CVE-2026-48595
- cve.org/CVERecord?id=CVE-2026-48595
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.