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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-409",
"CWE-770"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114136.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "3.6.4"
},
{
"fixed": "3.18.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "3c2634599b26a9f789b03045118dbc276117611a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "3.18.2",
"range": [
{
"fixed": "69694a17d0b6ac14b4ea4d77916b73c68dc5a3e8"
}
],
"source": "REFERENCES_TAG"
}
]
}