Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. multipart
  4. ›
  5. CVE-2026-28356

CVE-2026-28356: multipart vulnerable to ReDoS in `parse_options_header()`

March 12, 2026

The parse_options_header() function in multipart.py uses a regular expression with an ambiguous alternation, which can cause exponential backtracking (ReDoS) when parsing maliciously crafted HTTP or multipart segment headers. This can be abused for denial of service (DoS) attacks against web applications using this library to parse request headers or multipart/form-data streams.

References

  • github.com/advisories/GHSA-p2m9-wcp5-6qw3
  • github.com/defnull/multipart
  • github.com/defnull/multipart/security/advisories/GHSA-p2m9-wcp5-6qw3
  • nvd.nist.gov/vuln/detail/CVE-2026-28356

Code Behaviors & Features

Detect and mitigate CVE-2026-28356 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.2, all versions starting from 1.3.0 before 1.3.1

Fixed versions

  • 1.3.1
  • 1.2.2

Solution

Upgrade to versions 1.2.2, 1.3.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/multipart/CVE-2026-28356.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:14 +0000.