Vulnerability advisory

CVE-2026-48595

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

Published Updated OSV record ↗

Also known as EEF-CVE-2026-48595GHSA-9m9w-gxf7-rh8m

Severity
  • CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/elixir-tesla/tesla ↗
9341ac3a87791b3aee143088a2d43e78109a8aaa to before 2eb7a78948f9c3b18509bf28bdc729e07f46e0dc2eb7a78948f9c3b18509bf28bdc729e07f46e0dc
Not specified2d937d5813d7cda5cd726f41824985fb655c920f
Not specifieddb963dba67651b9abd1fc420a1d9679cf6efe182
Also listed as affected (39)
  • v1.18.2
  • v1.18.1
  • v1.18.0
  • v1.17.0
  • v1.16.0
  • v1.15.3
  • v1.15.2
  • v1.15.1
  • v1.15.0
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.3
  • v1.12.2
  • v1.12.1
  • v1.12.0
  • v1.11.2
  • v1.11.1
  • v1.11.0
  • v1.10.3
  • v1.10.2
  • v1.10.1
  • v1.10.0
  • v1.9.0
  • v1.8.0
  • v1.7.0
  • v1.6.1
  • v1.6.0
  • v1.5.1
  • v1.5.0
  • v1.4.4
  • v1.4.3
  • v1.4.2
  • v1.4.1
  • v1.4.0

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools