{"id":"CVE-2026-114136","state":"PUBLISHED","title":"Django REST framework: JSONParser applies an attacker-named codec to the request stream","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.","publishedAt":"2026-10-21T20:02:41.030Z","updatedAt":"2026-10-30T19:24:46.203Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["encode django-rest-framework"],"affected":[{"vendor":"encode","product":"django-rest-framework","versions":[{"version":">= 3.6.4, < 3.18.2","status":"affected"}]}],"references":["https://github.com/encode/django-rest-framework/security/advisories/GHSA-3547-9m27-7rxg","https://github.com/encode/django-rest-framework/commit/3c2634599b26a9f789b03045118dbc276117611a","https://github.com/encode/django-rest-framework/releases/tag/3.18.2"],"weaknesses":["CWE-409","CWE-770"],"ingestedAt":"2026-10-30T19:48:04.455Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/114xxx/CVE-2026-114136.json","commit":"91beacf46587178cb335e3399e6db92524d41de0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-114136","state":"PUBLISHED","datePublished":"2026-10-21T20:02:41.030Z","dateUpdated":"2026-10-30T19:24:46.203Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-20T21:53:58.473Z"},"containers":{"cna":{"title":"Django REST framework: JSONParser applies an attacker-named codec to the request stream","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"encode","product":"django-rest-framework","versions":[{"version":">= 3.6.4, < 3.18.2","status":"affected"}]}],"references":[{"url":"https://github.com/encode/django-rest-framework/security/advisories/GHSA-3547-9m27-7rxg","name":"https://github.com/encode/django-rest-framework/security/advisories/GHSA-3547-9m27-7rxg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/encode/django-rest-framework/commit/3c2634599b26a9f789b03045118dbc276117611a","name":"https://github.com/encode/django-rest-framework/commit/3c2634599b26a9f789b03045118dbc276117611a","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/django-rest-framework/releases/tag/3.18.2","name":"https://github.com/encode/django-rest-framework/releases/tag/3.18.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-409","lang":"en","description":"CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"CWE-770: Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-21T20:02:41.030Z"},"source":{"advisory":"GHSA-3547-9m27-7rxg","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/encode/django-rest-framework/security/advisories/GHSA-3547-9m27-7rxg","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-30T19:24:40.038710Z","id":"CVE-2026-114136","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-30T19:24:46.203Z"}}]}}}