Skip to main content
VulnerabilityPublished Updated

CVE-2026-5766: djangoproject Django · Improper Handling of Length Parameter Inconsistency

Affects djangoproject DjangoSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium : upgrade to 6.0.5 or 5.2.14 when convenient.

Data as of 2 Nov 2026, 22:58 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.0.5, 5.2.14
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 May 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 2 Nov 2026.

What to do

Upgrade Django and django to 6.0.5 or 5.2.14.

Affected software

ProductAffectedFixed in
djangoprojectDjangoAffected
  • >=6.0 <6.0.5
Fixed in
  • 6.0.5
djangoprojectDjangoAffected
  • >=5.2 <5.2.14
Fixed in
  • 5.2.14
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • =5.2
  • =6.0
Fixed in–
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • >=6.0 <6.0.5
  • >=5.2 <5.2.14
Fixed in
  • 6.0.5
  • 5.2.14

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

AI-suggested

Meanwhile, it is recommended to enforce upload size limits at the web server or reverse proxy level as per Django's guidance. Monitoring for updates from the Django project is advised to apply official fixes once available.

Description

CVE-2026-5766 is a vulnerability in Django versions 6.0 before 6.0.5 and 5.2 before 5.2.14 where ASGI requests with a missing or understated Content-Length header can bypass the FILE_UPLOAD_MAX_MEMORY_SIZE limit. This can lead to large files being loaded into memory, potentially causing service degradation. The issue affects the handling of length parameters in file uploads. Django recommends configuring upload size limits at the web server level.

References

Community reviews

Loading reviews…