CVE-2026-48595: CWE-178 Improper Handling of Case Sensitivity in elixir-tesla 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.
AI Analysis
Technical Summary
The vulnerability in elixir-tesla tesla's FollowRedirects middleware stems from a case-sensitive string comparison against a lowercase filter list to remove security-sensitive headers during cross-origin redirects. HTTP headers are case-insensitive per RFC 7230, but tesla preserves header key casing as supplied, causing headers such as "Authorization" (capitalized) to bypass the filter and be forwarded to redirect targets. This behavior allows an attacker who can control or influence the Location header in redirect responses to capture bearer tokens or other authorization credentials. The flaw affects tesla versions from 1.4.0 up to but not including 1.18.3. No official remediation level or patch link is provided in the data, and no known exploits are reported in the wild.
Potential Impact
An attacker capable of controlling or influencing cross-origin redirect responses can obtain sensitive authorization credentials, such as bearer tokens, due to improper header filtering. This leads to credential leakage and potential unauthorized access to protected resources. The vulnerability does not require user interaction and can be exploited remotely over the network. The CVSS 4.0 score of 8.2 reflects a high impact with network attack vector, low attack complexity, and high confidentiality impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided in the available data, users should monitor the elixir-tesla project for updates addressing this issue. Until a fix is available, avoid using vulnerable versions in environments where untrusted redirects may occur or implement additional controls to prevent unauthorized redirect manipulation.
CVE-2026-48595: CWE-178 Improper Handling of Case Sensitivity in elixir-tesla tesla
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.
CVSS v4.0
Score 8.2high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in elixir-tesla tesla's FollowRedirects middleware stems from a case-sensitive string comparison against a lowercase filter list to remove security-sensitive headers during cross-origin redirects. HTTP headers are case-insensitive per RFC 7230, but tesla preserves header key casing as supplied, causing headers such as "Authorization" (capitalized) to bypass the filter and be forwarded to redirect targets. This behavior allows an attacker who can control or influence the Location header in redirect responses to capture bearer tokens or other authorization credentials. The flaw affects tesla versions from 1.4.0 up to but not including 1.18.3. No official remediation level or patch link is provided in the data, and no known exploits are reported in the wild.
Potential Impact
An attacker capable of controlling or influencing cross-origin redirect responses can obtain sensitive authorization credentials, such as bearer tokens, due to improper header filtering. This leads to credential leakage and potential unauthorized access to protected resources. The vulnerability does not require user interaction and can be exploited remotely over the network. The CVSS 4.0 score of 8.2 reflects a high impact with network attack vector, low attack complexity, and high confidentiality impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided in the available data, users should monitor the elixir-tesla project for updates addressing this issue. Until a fix is available, avoid using vulnerable versions in environments where untrusted redirects may occur or implement additional controls to prevent unauthorized redirect manipulation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-22T09:36:56.834Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1f3494e29bf47b50fa2531
Added to database: 6/2/2026, 7:52:52 PM
Last enriched: 6/2/2026, 8:03:38 PM
Last updated: 6/3/2026, 4:32:21 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.