CVE-2026-28356: multipart Package Vulnerable to ReDoS in parse_options_header()

multipart Updated 14 Mar 2026

Summary

12/03/2026
Yes i
High
7.5

CVE-2026-28356: multipart vulnerable to ReDoS in parse_options_header(). Affects multipart across 2 version ranges.

< 1.2.2 >= 1.3.0, < 1.3.1

Fixed in 1.2.2 or 1.3.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The multipart package is a Python library used for parsing and handling multipart/form-data requests, commonly utilized in web applications for file uploads and form submissions. It provides functionality to parse request headers and body content efficiently. However, the package has a vulnerability that can lead to denial of service (DoS) attacks when processing maliciously crafted HTTP headers.

Vulnerability Detail

The vulnerability arises from the parse_options_header() function in multipart.py, which employs a regular expression with ambiguous alternation. This can trigger exponential backtracking (ReDoS) when parsing specially crafted headers, leading to significant slowdowns in request handling. The impact is severe enough to block request handling threads for several seconds, making applications using this library susceptible to DoS attacks.

How To Fix

Latest published version: 2.0.1 as of 22 Oct 2026

pip install --upgrade "multipart==2.0.1"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.2.2 1.2.2
    pip install --upgrade "multipart==1.2.2"
  • >= 1.3.0, < 1.3.1 1.3.1
    pip install --upgrade "multipart==1.3.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, you can implement input validation to sanitize and limit the size of incoming headers before they are processed by the multipart library. This can help mitigate the risk of triggering the ReDoS vulnerability.

Conclusion

The multipart package has a critical vulnerability that can lead to denial of service attacks due to improper handling of regular expressions in its parsing functions. It is essential to update to the latest patched versions to mitigate this risk and ensure the security of your web applications.

See every vulnerability recorded for multipart →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

All versions up to and including 1.3.0 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

A ReDoS (Regular Expression Denial of Service) attack exploits the performance characteristics of regular expressions, causing the application to slow down significantly when processing certain inputs.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software by analyzing your Pipfile.lock.

Related vulnerabilities

Recent vulnerabilities recorded for multipart.

How To Fix

Latest published version: 2.0.1 as of 22 Oct 2026

pip install --upgrade "multipart==2.0.1"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.2.2 1.2.2
    pip install --upgrade "multipart==1.2.2"
  • >= 1.3.0, < 1.3.1 1.3.1
    pip install --upgrade "multipart==1.3.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback