GitHub Advisoryadvisory · PyPI

GHSA-qjxf-f2mg-c6mc Tornado is vulnerable to DoS due to too many multipart parts

HIGH Published 2026-03-12 Modified 2026-06-08 Official page ↗
Aliases
CVE-2026-31958
Ecosystem
PyPI
Packages
tornado
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400
Reviewed
2026-03-12

Affected packages

• PyPI tornado: < 6.5.5 → fixed in 6.5.5

Description

In versions of Tornado prior to 6.5.5, the only limit on the number of parts in `multipart/form-data` is the `max_body_size` setting (default 100MB). Since parsing occurs synchronously on the main thread, this creates the possibility of denial-of-service due to the cost of parsing very large multipart bodies with many parts. Tornado 6.5.5 introduces new limits on the size and complexity of multipart bodies, including a default limit of 100 parts per request. These limits are configurable if needed; see `tornado.httputil.ParseMultipartConfig`. It is also now possible to disable `multipart/form-data` parsing entirely if it is not required for the application.

Related

Alias · CVE (1)

  • CVE-2026-31958 Tornado is a Python web framework and asynchronous networking library. vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References