Vulnerability advisory

CVE-2026-48596

CRLF injection in Tesla.Multipart.add_content_type_param/2 allows HTTP header injection

Published Updated OSV record ↗

Also known as EEF-CVE-2026-48596GHSA-q7jx-v53g-848w

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

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/elixir-tesla/tesla ↗
fed422b5ec981cc6237b6a2c1be52e4564461bad to before 2eb7a78948f9c3b18509bf28bdc729e07f46e0dc2eb7a78948f9c3b18509bf28bdc729e07f46e0dc
Not specified23601edac5d22ba9407b427967b5bdbda201aec2
Not specified6ebfdb9abe9c6f119408045b933d82462decd351
Also listed as affected (51)
  • 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
  • v1.3.3
  • v1.3.2
  • v.1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.1
  • v1.2.0
  • v1.1.0
  • v1.0.0-beta.1
  • v0.10.0
  • v0.9.0
  • v0.8.0

Description

Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in elixir-tesla tesla allows HTTP header injection via Tesla.Multipart.add_content_type_param/2.

Tesla.Multipart.add_content_type_param/2 appends caller-supplied strings to the multipart content_type_params list without validating for CR (\r) or LF (\n) characters. Tesla.Multipart.headers/1 then joins these params verbatim with "; " to construct the outgoing Content-Type header value. A param containing \r\n splits the header line, allowing arbitrary headers to be injected into the outbound HTTP request. Any application that forwards untrusted input (such as a user-supplied charset or parameter string) into add_content_type_param/2 is affected.

This issue affects tesla: from 0.8.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