Skip to main content
VulnerabilityPublished Updated

CVE-2026-53540: python-multipart · Negative Content-Length in parse_form buffers the entire body in memory

Affects cycodeSource GCVE Database

0
Compare
Authoritative record:CVE-2026-53540· Low 3.7

Not known to be exploited · CVSS 3.7 Low : upgrade to 3.16.1 when convenient.

Data as of 19 Nov 2026, 19:39 UTC

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.16.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.

What to do

Upgrade cycode to 3.16.1.

Affected software

ProductAffectedFixed in
Homebrewcycodepkg:brew/cycodeOther threatsAffected
  • >=3.2.0 <3.16.1
Fixed in
  • 3.16.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade python-multipart to version 3.16.1 or later, which rejects negative Content-Length headers with a ValueError before reading the input stream. If using bespoke handlers that call parse_form() directly, ensure Content-Length headers are validated and normalized to prevent negative values. No other mitigation is required for popular frameworks that do not call parse_form() directly or that normalize Content-Length.

Description

The python-multipart library's parse_form() function did not validate the Content-Length header for negative values, causing a negative Content-Length to result in reading the entire request body into memory at once instead of in chunks. This behavior can degrade availability under concurrent requests but does not cause a complete denial of service. No known popular packages are affected because they either do not call parse_form() directly or normalize the Content-Length header. The issue is fixed in version 3.16.1, which rejects negative Content-Length values.

References

Community reviews

Loading reviews…