Skip to content
Heist/ feed
Low

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-48596

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-48596

tesla

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

tesla

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "cpes": [
      "cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*"
    ],
    "repo": "https://github.com/elixir-tesla/tesla",
    "vendor": "elixir-tesla",
    "modules": [
      "'Elixir.Tesla.Multipart'"
    ],
    "product": "tesla",
    "versions": [
      {
        "status": "affected",
        "version": "0.8.0",
        "lessThan": "1.18.3",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:hex/tesla",
    "packageName": "tesla",
    "programFiles": [
      "lib/tesla/multipart.ex"
    ],
    "collectionURL": "https://repo.hex.pm",
    "defaultStatus": "unaffected",
    "programRoutines": [
      {
        "name": "'Elixir.Tesla.Multipart':add_content_type_param/2"
      },
      {
        "name": "'Elixir.Tesla.Multipart':headers/1"
      }
    ]
  },
  {
    "cpes": [
      "cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*"
    ],
    "repo": "https://github.com/elixir-tesla/tesla",
    "vendor": "elixir-tesla",
    "modules": [
      "'Elixir.Tesla.Multipart'"
    ],
    "product": "tesla",
    "versions": [
      {
        "status": "affected",
        "version": "6ebfdb9abe9c6f119408045b933d82462decd351",
        "lessThan": "23601edac5d22ba9407b427967b5bdbda201aec2",
        "versionType": "git"
      }
    ],
    "packageURL": "pkg:github/elixir-tesla/tesla",
    "packageName": "elixir-tesla/tesla",
    "programFiles": [
      "lib/tesla/multipart.ex"
    ],
    "collectionURL": "https://github.com",
    "defaultStatus": "unaffected",
    "programRoutines": [
      {
        "name": "'Elixir.Tesla.Multipart':add_content_type_param/2"
      },
      {
        "name": "'Elixir.Tesla.Multipart':headers/1"
      }
    ]
  }
]
Related CVEs
CVE-2026-48596

Source reference: /cveMetadata/cveId

Publisher severity

low

Source reference: /containers/cna/metrics

Event
#1903 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement