Skip to content
Heist/ feed
Back to feed
Low

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-48596
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:24 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 2 Jun 2026, 19:09 UTC

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.

osv:CVE-2026-48596
Complete source record
{
  "id": "124eed3d74ef0c369df2d7333d005c613086768785744534b4b8a2b26eebb5bb",
  "url": "https://osv.dev/vulnerability/CVE-2026-48596",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CRLF injection in Tesla.Multipart.add_content_type_param/2 allows HTTP header injection",
    "summary": "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.",
    "evidence": "osv:CVE-2026-48596",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-48596",
      "aliases": [
        "CVE-2026-48596",
        "EEF-CVE-2026-48596",
        "GHSA-q7jx-v53g-848w"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/elixir-tesla/tesla",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fed422b5ec981cc6237b6a2c1be52e4564461bad"
                },
                {
                  "fixed": "2eb7a78948f9c3b18509bf28bdc729e07f46e0dc"
                },
                {
                  "fixed": "23601edac5d22ba9407b427967b5bdbda201aec2"
                },
                {
                  "fixed": "6ebfdb9abe9c6f119408045b933d82462decd351"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.8.0"
                      },
                      {
                        "fixed": "1.18.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "23601edac5d22ba9407b427967b5bdbda201aec2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6ebfdb9abe9c6f119408045b933d82462decd351"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "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"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48596.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.190167106Z",
      "provider": "osv",
      "references": [
        "https://cna.erlef.org/cves/CVE-2026-48596.html",
        "https://github.com",
        "https://osv.dev/vulnerability/EEF-CVE-2026-48596",
        "https://repo.hex.pm",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48596.json",
        "https://github.com/elixir-tesla/tesla/security/advisories/GHSA-q7jx-v53g-848w",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-48596",
        "https://github.com/elixir-tesla/tesla/commit/23601edac5d22ba9407b427967b5bdbda201aec2",
        "https://github.com/elixir-tesla/tesla/commit/6ebfdb9abe9c6f119408045b933d82462decd351",
        "https://github.com/elixir-tesla/tesla"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-113"
        ],
        "cna_assigner": "EEF",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48596.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-48596",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517339,
  "published_at": "2026-06-02T19:09:31.615+00:00"
}