PT-2026-38278 · Pypi · Python-Multipart

Published

2026-05-06

·

Updated

2026-05-16

·

CVE-2026-42561

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions python-multipart versions prior to 0.0.27
Description A denial of service issue exists in the multipart part header parsing of the MultipartParser when processing multipart/form-data. The parser lacked limits on the number of part headers and the size of individual part headers. An attacker could cause excessive CPU work, leading to CPU exhaustion and potential worker or event-loop delays in ASGI applications using frameworks like Starlette or FastAPI, by sending a request with a single very large header value or many repeated headers without terminating the header block. The affected parser states include HEADER FIELD START, HEADER FIELD, HEADER VALUE START, HEADER VALUE, and HEADER VALUE ALMOST DONE.
Recommendations Update to version 0.0.27 or later. Enforce request body size limits at the server, proxy, or framework layer to reduce exposure.

Fix

DoS

Allocation of Resources Without Limits

Weakness Enumeration

Related Identifiers

CVE-2026-42561
ECHO-6701-0C72-DE60
GHSA-PP6C-GR5W-3C5G
OPENSUSE-SU-2026:10797-1

Affected Products

Python-Multipart