Vulnerability
CVE-2026-114136
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.
21 advisories report this vulnerability, across 6 ecosystems.
Advisories in Chainguard
- CGA-2w7j-79vh-7q6p
- CGA-353x-p336-w4gq
- CGA-4244-3849-6mgw
- CGA-52qh-9235-3m5r
- CGA-5mg3-4fv9-j2q4
- CGA-83hv-828h-fxf5
- CGA-8f4p-86xv-g2jj
- CGA-f826-456m-22cq
- CGA-frx4-7xr6-mqm8
- CGA-g3qv-525w-v8p2
- CGA-hxvg-r2qf-8cg4
- CGA-m6x4-86j3-2487
- CGA-mjg9-xgj8-4533
- CGA-mq92-pm9w-3gw4
- CGA-phwc-3q96-2w4f
- CGA-wpjr-hq39-q387