Vulnerability · Published Aug 11, 2026 · Assigned by GitHub_M
CVE-2026-73228Django REST framework: Potential bypass of Django `DATA_UPLOAD_MAX_MEMORY_SIZE` when parsing oversized JSON and urlencoded request bodies via DRF `request.data`
Medium 5.3
In plain English
A medium-severity uncontrolled resource consumption in django-rest-framework from encode. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Django REST framework is a toolkit for building Web APIs. Prior to 3.17.2, Django REST Framework's request.data parsing in rest_framework/request.py Request._parse() passes the underlying HttpRequest stream to JSONParser and FormParser for application/json and application/x-www-form-urlencoded bodies, bypassing Django's DATA_UPLOAD_MAX_MEMORY_SIZE protection and allowing oversized request bodies to consume additional memory and CPU. This issue is fixed in version 3.17.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | djangorestframework | no fix listed | DEBIAN-CVE-2026-73228 |
| Debian:13 | djangorestframework | no fix listed | DEBIAN-CVE-2026-73228 |
| Debian:14 | djangorestframework | 3.18.1+ds1-1 | DEBIAN-CVE-2026-73228 |
| PyPI | djangorestframework | 3.17.2 | GHSA-2m8g-3cmr-wg3w |
| PyPI | djangorestframework | 3.17.2 | PYSEC-2026-3827 |
| Ubuntu:22.04:LTS | djangorestframework | no fix listed | UBUNTU-CVE-2026-73228 |
| Ubuntu:24.04:LTS | djangorestframework | no fix listed | UBUNTU-CVE-2026-73228 |
| Ubuntu:26.04:LTS | djangorestframework | no fix listed | UBUNTU-CVE-2026-73228 |
| Ubuntu:26.10 | djangorestframework | no fix listed | UBUNTU-CVE-2026-73228 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| encode | django-rest-framework | < 3.17.2 |
Weakness: CWE-400, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/encode/django-rest-framework/security/advisories/GHSA-2m8g-3cmr-wg3w x_refsource_CONFIRM
- https://github.com/encode/django-rest-framework/pull/10013 x_refsource_MISC
- https://github.com/encode/django-rest-framework/commit/2912dc98042f78e27636551fc22eeaf10f725fdd x_refsource_MISC
- https://github.com/encode/django-rest-framework/commit/82ef7b7e4e0a73ba5c489b465fae7e76d948da4e x_refsource_MISC