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.
Published: 2026-06-02
Score: 2.1 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises when the Tesla.Multipart.add_content_type_param/2 function appends caller-supplied strings directly to the multipart content_type_params list without removing or escaping CR (\r) or LF (\n) characters. When these parameters are later concatenated into the outgoing Content-Type header, a value containing \r\n splits the header line, enabling an attacker to inject arbitrary HTTP headers into the request. This can expose sensitive data or alter the behavior of downstream services by altering headers such as Host, User-Agent, or custom headers. The weakness is classified as CWE‑113, Improper Neutralization of CRLF Sequences in HTTP Headers.

Affected Systems

The affected component is the elixir-tesla library named tesla, distributed by the elixir-tesla organization. Version ranges that are susceptible start from 0.8.0 and extend up through any release prior to 1.18.3. Therefore, any application that depends on tesla 1.18.2 or earlier and forwards user data to Tesla.Multipart.add_content_type_param/2 is at risk.

Risk and Exploitability

The CVSS score of 2.1 classifies the issue as low severity. No EPSS score is currently available, and the vulnerability is not listed in the CISA KEV catalog, indicating a low likelihood of widespread exploitation. However, the flaw can be leveraged by an attacker who controls or convinces an application to pass untrusted strings into add_content_type_param/2, resulting in header injection. Since the attack surface depends on application logic rather than a public-facing interface, the exploitability is limited but not impossible in poorly designed systems.

Generated by OpenCVE AI on June 3, 2026 at 04:18 UTC.

Remediation

Vendor Workaround

Validate content-type parameter strings before passing them to Tesla.Multipart.add_content_type_param/2, rejecting any value that contains \r or \n.


OpenCVE Recommended Actions

  • Update the elixir-tesla library to version 1.18.3 or newer to eliminate the CRLF injection path.
  • If an upgrade is not possible, validate any content‑type parameter strings before passing them to Tesla.Multipart.add_content_type_param/2, ensuring that the strings contain no \r or \n characters.
  • Audit all call sites of Tesla.Multipart.add_content_type_param/2 in the application code to confirm that only trusted, sanitized input is supplied, and apply additional input sanitization measures as necessary.

Generated by OpenCVE AI on June 3, 2026 at 04:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 03 Jun 2026 02:30:00 +0000

Type Values Removed Values Added
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.
Title CRLF injection in Tesla.Multipart.add_content_type_param/2 allows HTTP header injection
First Time appeared Elixir-tesla
Elixir-tesla tesla
Weaknesses CWE-113
CPEs cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*
Vendors & Products Elixir-tesla
Elixir-tesla tesla
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N'}


Subscriptions

Elixir-tesla Tesla
cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-06-02T19:12:34.508Z

Reserved: 2026-05-22T09:36:56.834Z

Link: CVE-2026-48596

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-02T20:16:38.557

Modified: 2026-06-02T20:16:38.557

Link: CVE-2026-48596

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-03T04:30:05Z

Weaknesses