PoC Monitor
← All CVEs
CVE-2026-48595published 2 Jun 2026 19:08 UTCData: JSON · API

Tesla

Authorization header leaks to third-party origin on cross-origin redirect in Tesla.Middleware.FollowRedirects

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by CNA · CWE-178
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

elixir-tesla tesla
  • >= 1.4.0, < 1.18.3

Fixed in 1.18.3

elixir-tesla tesla
  • >= 2d937d5813d7cda5cd726f41824985fb655c920f, < db963dba67651b9abd1fc420a1d9679cf6efe182

Fixed in db963dba67651b9abd1fc420a1d9679cf6efe182

Mitigation

Upgrade tesla to 1.18.3 or later.

Upgrade tesla to db963dba67651b9abd1fc420a1d9679cf6efe182 or later.

Workaround

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.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published2 Jun 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.