---
id: CVE-2026-73228
title: Django REST framework is a toolkit for building Web APIs
summary: >-
  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 f…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
cwe:
  - CWE-400
  - CWE-770
vendor: djangorestframework
product: djangorestframework
affected:
  - djangorestframework < 3.17.2
patched:
  - djangorestframework 3.17.2
published: '2026-08-11'
updated: '2026-09-11'
sourceUpdated: '2026-09-11T18:24:59.400'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73228'
references:
  - url: >-
      https://github.com/encode/django-rest-framework/commit/2912dc98042f78e27636551fc22eeaf10f725fdd
    label: security-advisories@github.com
  - url: >-
      https://github.com/encode/django-rest-framework/commit/82ef7b7e4e0a73ba5c489b465fae7e76d948da4e
    label: security-advisories@github.com
  - url: 'https://github.com/encode/django-rest-framework/pull/10013'
    label: security-advisories@github.com
  - url: >-
      https://github.com/encode/django-rest-framework/security/advisories/GHSA-2m8g-3cmr-wg3w
    label: security-advisories@github.com
  - url: >-
      https://github.com/encode/django-rest-framework/security/advisories/GHSA-2m8g-3cmr-wg3w
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73228'
  - url: 'https://github.com/encode/django-rest-framework/releases/tag/3.17.2'
  - url: 'https://github.com/advisories/GHSA-2m8g-3cmr-wg3w'
  - url: 'https://github.com/encode/django-rest-framework'
  - url: 'https://pypi.org/project/djangorestframework'
tags:
  - nvd
  - ghsa
  - pip
  - osv
epss: 0.00557
epssPercentile: 0.44019
aliases:
  - GHSA-2m8g-3cmr-wg3w
  - PYSEC-2026-3827
ecosystem: pip
ingestedAt: '2026-09-01T19:31:22.951Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-73228)

Affected packages:

- `djangorestframework < 3.17.2`

Patched in:

- `djangorestframework 3.17.2`

Source: https://github.com/advisories/GHSA-2m8g-3cmr-wg3w
