{"id":"CVE-2026-114136","published":"2026-10-21T20:02:41Z","modified":"2026-10-30T19:24:46Z","title":"Django REST framework: JSONParser applies an attacker-named codec to the request stream","vendor":"encode","product":"django-rest-framework","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00532,"percentile":0.45834,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/django-rest-framework/releases/tag/3.18.2","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":9.17},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"encode","affectedVersions":[{"vendor":"encode","product":"django-rest-framework","versions":[">= 3.6.4, < 3.18.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-30T19:24:40.038710Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"djangorestframework","vulnerableRanges":[">=3.6.4, <3.18.2"],"patched":["3.18.2"],"from":["GHSA-3547-9m27-7rxg"],"provenance":"source"}],"summary":{"text":"The Django REST framework JSONParser (rest_framework/parsers.py) in versions 3.6.4 through 3.18.2 uses the client-supplied Content-Type charset with codecs.getreader, which accepts byte-transform codecs such as bz2_codec, not just text encodings. An unauthenticated remote client can send a small compressed JSON body to any reachable endpoint that accepts JSON, with the default parser set sufficient, and cause it to expand after the size limit has been checked only against the wire bytes, consuming substantial per-worker memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:39Z"},"euvd":{"id":"EUVD-2026-107546","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-21520","published":"2024-06-26","fixed":"3.15.2","kev":false},{"cve":"CVE-2026-73228","published":"2026-08-11","fixed":"3.17.2","kev":false,"link":{"from":"CVE-2026-73228","to":"CVE-2026-114136","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:djangorestframework","fromFixed":"3.17.2","toFixed":"3.18.2","daysApart":71}]}},{"cve":"CVE-2026-73229","published":"2026-08-11","fixed":"3.17.2","kev":false},{"cve":"CVE-2026-114136","published":"2026-10-21","fixed":"3.18.2","kev":false},{"cve":"CVE-2026-114137","published":"2026-10-21","fixed":"3.18.2","kev":false},{"cve":"CVE-2026-114138","published":"2026-10-21","fixed":"3.18.2","kev":false}],"package":"PyPI:djangorestframework"}}