CVE-2026-48595
High 8.2No known exploitationFix availableAuthorization header leaks to third-party origin on cross-origin redirect in Tesla.Middleware.FollowRedirects
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 43% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-178
Patching and mitigation
- Patch status
- Fix available (source: CVE record (EEF))
- Fix documented (source date)
- Mitigation
- Normalize all header keys to lowercase before passing them to Tesla. Use "authorization" instead of "Authorization" when setting headers via Tesla.put_header/3 or Tesla.Middleware.Headers. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| elixir-tesla | tesla | from 1.4.0 before 1.18.3 | 1.18.3 | CVE Program |
| elixir-tesla | tesla | from 2d937d5813d7cda5cd726f41824985fb655c920f before db963dba67651b9abd1fc420a1d9679cf6efe182 | db963dba67651b9abd1fc420a1d9679cf6efe182 | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (EEF)
Vendor guidance and references
- Fix commit db963db in elixir-tesla/tesla (opens in a new tab)patch
- https://github.com/elixir-tesla/tesla/security/advisories/GHSA-9m9w-gxf7-rh8m (opens in a new tab)vendor-advisory, related
- EEF CNA record for CVE-2026-48595 (opens in a new tab)related
- Introducing commit 2d937d5 in elixir-tesla/tesla (opens in a new tab)related
- OSV record EEF-CVE-2026-48595 (opens in a new tab)related