Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. djangorestframework
  4. ›
  5. CVE-2026-73228

CVE-2026-73228: Django REST framework: Potential bypass of Django `DATA_UPLOAD_MAX_MEMORY_SIZE` when parsing oversized JSON and urlencoded request bodies via DRF `request.data`

September 1, 2026

While investigating Django REST Framework’s request parsing behavior, I identified that DRF’s high-level request.data parsing appears to bypass Django’s configured DATA_UPLOAD_MAX_MEMORY_SIZE protection for application/json and application/x-www-form-urlencoded request bodies.

In the tested configurations, Django correctly raises RequestDataTooBig when applications access request.body or Django’s native request.POST, but DRF successfully parses the same oversized payloads through request.data.

This behavior appears to occur because DRF passes the underlying HttpRequest object directly to parsers, which consume the request stream through Django’s lower-level streaming interface rather than the guarded request.body path.

I am reporting this privately because I am unsure whether this behavior is considered part of DRF’s intended security boundary, but it appears to bypass a documented Django request-size protection for common DRF request parsing paths and may have availability implications.

References

  • github.com/advisories/GHSA-2m8g-3cmr-wg3w
  • github.com/encode/django-rest-framework/commit/2912dc98042f78e27636551fc22eeaf10f725fdd
  • github.com/encode/django-rest-framework/commit/82ef7b7e4e0a73ba5c489b465fae7e76d948da4e
  • github.com/encode/django-rest-framework/pull/10013
  • github.com/encode/django-rest-framework/releases/tag/3.17.2
  • github.com/encode/django-rest-framework/security/advisories/GHSA-2m8g-3cmr-wg3w
  • nvd.nist.gov/vuln/detail/CVE-2026-73228

Code Behaviors & Features

Detect and mitigate CVE-2026-73228 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.17.2

Fixed versions

  • 3.17.2

Solution

Upgrade to version 3.17.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/djangorestframework/CVE-2026-73228.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 09 Sep 2026 12:23:52 +0000.