High severity · published Oct 21, 2026
CVE-2026-114136
Django REST framework: JSONParser applies an attacker-named codec to the request stream
New
7.5
CVSS
0.4%
EPSS
No
On KEV
Description
Django REST framework is a toolkit for building Web APIs. From 3.6.4 until 3.18.2, JSONParser.parse in rest_framework/parsers.py uses the client-supplied Content-Type charset value with codecs.getreader, which accepts byte-transform codecs such as bz2_codec rather than only text encodings. A remote unauthenticated client can therefore cause a compressed JSON request body to be expanded after Django has enforced DATA_UPLOAD_MAX_MEMORY_SIZE against only the wire bytes, allowing a very small request to consume substantial per-worker memory. The default parser set is sufficient, and any reachable endpoint that accepts a JSON body is affected. This issue is fixed in version 3.18.2.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 38% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DJ
django-rest-framework · encode
>= 3.6.4, < 3.18.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-114136
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-114136
github.com
https://github.com/encode/django-rest-framework/commit/3c2634599b26a9f789b03045118dbc276117611a
github.com
https://github.com/encode/django-rest-framework/releases/tag/3.18.2
github.com
https://github.com/encode/django-rest-framework/security/advisories/GHSA-3547-9m27-7rxg
More from django-rest-framework
7.5
CVE-2026-114138
Django REST framework: Accept header with many large quoted parameters burns ~19s of CPU per request in content negotiation
7.4
CVE-2026-114137
Django REST framework: TokenProxy.delete() reports success and revokes nothing
6.1
CVE-2020-25626
A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2
5.3
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`
4.3
CVE-2026-73229
Django REST framework: AdminRenderer may disclose GET-protected data when rendering invalid write requests
