Advisory

GHSA-qjxf-f2mg-c6mc

Also known as: CVE-2026-31958, PYSEC-2026-140

Summary

Tornado is vulnerable to DoS due to too many multipart parts

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-12 14:19 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

tornado

PyPI · All systems

Affected

  • introduced 0, fixed 6.5.5 (ecosystem)

Fixed versions

6.5.5

Fix

  • Fixed version 6.5.5
    pip install --upgrade tornado==6.5.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences