CVE-2026-5766
Potential denial-of-service vulnerability in ASGI requests via file upload limit bypass
Reported by dsf · Published May 5, 2026
django is fixed in 6.0.5 and 5.2.14 (PyPI)
An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14. ASGI requests with a missing or understated `Content-Length` header can bypass the `FILE_UPLOAD_MAX_MEMORY_SIZE` limit, potentially loading large files into memory and causing service degradation. As a reminder, Django expects a limit to be configured at the web server level rather than solely relying on `FILE_UPLOAD_MAX_MEMORY_SIZE`. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Kyle Agronick for reporting this issue.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| django | PyPI | 6.0.5, 5.2.14 |
| py3-django | Alpine | 5.2.14-r0 |
| authentik-fips-2026.2 | Chainguard | 2026.2.1-r7 |
| py3-django | Chainguard | 6.0.5-r0 |
| py3-django | Wolfi | 6.0.5-r0 |
| authentik-fips-2025.12 | Chainguard | 2025.12.4-r7 |
| django | Bitnami | 6.0.5, 5.2.14 |
| authentik-2026.2 | Chainguard | 2026.2.1-r9 |
| authentik-2025.12 | Chainguard | 2025.12.4-r9 |
| django | djangoproject | 6.0.5, 5.2.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | Django | 6.0, 6.0.5, 5.2 |
| alpine | py3-django | 0 |
| djangoproject | Django | 6.0, 5.2.14, 5.2 |
| chainguard | authentik-fips-2026.2 | 0 |
| chainguard | py3-django | 0 |
| wolfi | py3-django | 0 |
| PyPI | Django | 6.0.0, 5.2.0 |
| chainguard | authentik-fips-2025.12 | 0 |
| chainguard | authentik-2026.2 | 0 |
| chainguard | authentik-2025.12 | 0 |
Timeline
- May 5, 2026 CVE Published
- May 5, 2026 PoC Published
- May 5, 2026 Security Advisory (4 in total, the first dated here)
- May 6, 2026 EPSS Score (30 in total, the first dated here)
- May 6, 2026 CVE Updated
- Aug 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-5766
vulnetix vdb fixes CVE-2026-5766
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-5766/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Django security archive vendor-advisory
- Django releases announcements mailing-list
- Django security releases issued: 6.0.5 and 5.2.14 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-5766 advisory
- https://github.com/advisories/GHSA-w26r-rmm8-9c29 advisory
- https://docs.djangoproject.com/en/dev/releases/security url
- https://www.djangoproject.com/weblog/2026/may/05/security-releases url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-54.yaml advisory
- https://github.com/django/django url