Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-48595: CWE-178 Improper Handling of Case Sensitivity in elixir-tesla tesla

0
High
VulnerabilityCVE-2026-48595cvecve-2026-48595cwe-178
Published: Tue Jun 02 2026 (06/02/2026, 19:08:48 UTC)
Source: CVE Database V5
Vendor/Project: elixir-tesla
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/02/2026, 20:03:38 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses