---
id: CVE-2026-48598
title: >-
  Improper Encoding or Escaping of Output vulnerability in elixir-tesla tesla
  allows multipart part header injection via unescaped Content-Disposition
  parameter values.


  Tesla.Multipart.part_headers_for_disposition/1 interpolates each disp…
summary: >-
  Improper Encoding or Escaping of Output vulnerability in elixir-tesla tesla
  allows multipart part header injection via unescaped Content-Disposition
  parameter values.


  Tesla.Multipart.part_headers_for_disposition/1 interpolates each disp…
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-116
vendor: elixir-tesla
product: tesla
affected:
  - 'tesla >= 0.8.0, < 1.18.3'
patched:
  - tesla 1.18.3
published: '2026-06-02'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T21:17:13.760'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48598'
references:
  - url: 'https://cna.erlef.org/cves/CVE-2026-48598.html'
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: >-
      https://github.com/elixir-tesla/tesla/commit/6ebfdb9abe9c6f119408045b933d82462decd351
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: >-
      https://github.com/elixir-tesla/tesla/commit/bb1a2c3da2775924d96e3db8e315dcc4d5d2246e
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: >-
      https://github.com/elixir-tesla/tesla/security/advisories/GHSA-28jh-g32x-v9v4
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: 'https://osv.dev/vulnerability/EEF-CVE-2026-48598'
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: >-
      https://github.com/elixir-tesla/tesla/security/advisories/GHSA-28jh-g32x-v9v4
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48598'
  - url: 'https://github.com/advisories/GHSA-28jh-g32x-v9v4'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - erlang
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-03T14:58:39.064613Z'
scores:
  nvd: 3.7
  cna: 2.1
epss: 0.00337
epssPercentile: 0.24333
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/workshops-de/google_gax'
  checkedAt: '2026-09-24T21:53:34.696Z'
aliases:
  - GHSA-28jh-g32x-v9v4
ecosystem: erlang
ingestedAt: '2026-07-10T00:54:12.221Z'
---

## Overview

Improper Encoding or Escaping of Output vulnerability in elixir-tesla tesla allows multipart part header injection via unescaped Content-Disposition parameter values.

Tesla.Multipart.part_headers_for_disposition/1 interpolates each disposition parameter as #{k}="#{v}" with no validation of CR (\r), LF (\n), or double-quote characters. The values come verbatim from the caller via Tesla.Multipart.add_field/4 (the name parameter), Tesla.Multipart.add_file/3, and Tesla.Multipart.add_file_content/4 (both the filename parameter and other disposition opts). A " in the value closes the quoted parameter early; a \r\n ends the Content-Disposition header line and starts a new part header (such as a forged Content-Type), or, after a second \r\n, ends the entire part header block and prepends bytes to the part body. The default-filename path in add_file/3 derives the filename via Path.basename/1, which does not strip CR or LF, so any application forwarding a partially-attacker-controlled file path inherits the same issue.

This issue affects tesla: from 0.8.0 before 1.18.3.

## Affected

- `tesla >= 0.8.0, < 1.18.3`

## Remediation

Upgrade past the affected range:

- `tesla 1.18.3`

## Package advisory (CVE-2026-48598)

Affected packages:

- `tesla >= 0.8.0, < 1.18.3`

Patched in:

- `tesla 1.18.3`

Source: https://github.com/advisories/GHSA-28jh-g32x-v9v4
