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

CVE-2026-42561: python-multipart has Denial of Service via unbounded multipart part headers

May 6, 2026 (updated May 14, 2026)

python-multipart has a denial of service vulnerability in multipart part header parsing. When parsing multipart/form-data, MultipartParser previously had no limit on the number of part headers or the size of an individual part header. An attacker could send a request with either many repeated headers without terminating the header block or a single very large header value, causing excessive CPU work before request rejection or completion.

References

  • github.com/Kludex/python-multipart/security/advisories/GHSA-pp6c-gr5w-3c5g
  • github.com/advisories/GHSA-pp6c-gr5w-3c5g
  • nvd.nist.gov/vuln/detail/CVE-2026-42561

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.27

Fixed versions

  • 0.0.27

Solution

Upgrade to version 0.0.27 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-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/python-multipart/CVE-2026-42561.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:30 +0000.