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.
CVE-2026-48595
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-48595
tesla
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
tesla
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"cpes": [
"cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/elixir-tesla/tesla",
"vendor": "elixir-tesla",
"modules": [
"'Elixir.Tesla.Middleware.FollowRedirects'"
],
"product": "tesla",
"versions": [
{
"status": "affected",
"version": "1.4.0",
"lessThan": "1.18.3",
"versionType": "semver"
}
],
"packageURL": "pkg:hex/tesla",
"packageName": "tesla",
"programFiles": [
"lib/tesla/middleware/follow_redirects.ex"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Tesla.Middleware.FollowRedirects':call/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/elixir-tesla/tesla",
"vendor": "elixir-tesla",
"modules": [
"'Elixir.Tesla.Middleware.FollowRedirects'"
],
"product": "tesla",
"versions": [
{
"status": "affected",
"version": "2d937d5813d7cda5cd726f41824985fb655c920f",
"lessThan": "db963dba67651b9abd1fc420a1d9679cf6efe182",
"versionType": "git"
}
],
"packageURL": "pkg:github/elixir-tesla/tesla",
"packageName": "elixir-tesla/tesla",
"programFiles": [
"lib/tesla/middleware/follow_redirects.ex"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Tesla.Middleware.FollowRedirects':call/3"
}
]
}
]- Related CVEs
- CVE-2026-48595
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #1902 · Revision 1
- Added to Heist Feed
- Publisher date