Advisory

PYSEC-2026-249

Also known as: CVE-2026-54283, GHSA-82w8-qh3p-5jfq

Summary

The record has no summary.

Details

Starlette is a lightweight ASGI framework/toolkit. From 0.4.1 until 1.3.1, request.form() accepts max_fields and max_part_size to bound resource consumption while parsing form data. These limits are enforced for multipart/form-data, but silently ignored for application/x-www-form-urlencoded. An unauthenticated attacker can therefore send a urlencoded body with an arbitrarily large number of fields or an arbitrarily large field, even when the application configured limits it believed would apply. This vulnerability is fixed in 1.3.1.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-06-22 18:16 UTC
Modified
2026-06-27 11:15 UTC

Affected packages and fixes

starlette

PyPI · All systems

Affected

  • introduced 0.4.1, fixed 1.3.1 (ecosystem)

Fixed versions

1.3.1

Fix

  • Fixed version 1.3.1
    pip install --upgrade starlette==1.3.1

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: PyPA Advisory Database · CC BY 4.0

Sources & licences