# CVE-2026-48595: Authorization header leaks to third-party origin on cross-origin redirect in Tesla.Middleware.FollowRedirects

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-178
- **Published:** 2026-06-02T19:08:48.339Z
- **Modified:** 2026-11-19T08:24:55.840Z

## Who should check

- Anyone running elixir-tesla tesla \>= 1.4.0, \< 1.18.3
- Anyone running elixir-tesla tesla \>= 2d937d5813d7cda5cd726f41824985fb655c920f, \< db963dba67651b9abd1fc420a1d9679cf6efe182

## 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.

## Affected and fixed versions

- elixir-tesla tesla: \>= 1.4.0, \< 1.18.3 (cvelist)
- elixir-tesla tesla: \>= 2d937d5813d7cda5cd726f41824985fb655c920f, \< db963dba67651b9abd1fc420a1d9679cf6efe182 (cvelist)

## Mitigation

- Upgrade tesla to 1.18.3 or later.
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-48595. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-48595.md
Affected: elixir-tesla tesla >= 1.4.0, < 1.18.3; elixir-tesla tesla >= 2d937d5813d7cda5cd726f41824985fb655c920f, < db963dba67651b9abd1fc420a1d9679cf6efe182
Fixed in: elixir-tesla tesla 1.18.3

Steps:
1. Search this machine and project for elixir-tesla tesla: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-48595 being exploited?

There is no confirmed exploitation: CVE-2026-48595 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-48595?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-48595?

elixir-tesla tesla \>= 1.4.0, \< 1.18.3; elixir-tesla tesla \>= 2d937d5813d7cda5cd726f41824985fb655c920f, \< db963dba67651b9abd1fc420a1d9679cf6efe182.

### Is there a fix for CVE-2026-48595?

Yes. Fixed in elixir-tesla tesla 1.18.3. Upgrade tesla to 1.18.3 or later. Vendor 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.

### How do I check if I'm affected by CVE-2026-48595?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/elixir-tesla/tesla/security/advisories/GHSA-9m9w-gxf7-rh8m>
- patch: <https://github.com/elixir-tesla/tesla/commit/2d937d5813d7cda5cd726f41824985fb655c920f>
- patch: <https://github.com/elixir-tesla/tesla/commit/db963dba67651b9abd1fc420a1d9679cf6efe182>
- other: <https://cna.erlef.org/cves/CVE-2026-48595.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-48595>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-48595>

HTML: <https://flawdb.com/CVE-2026-48595> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-48595>
