Description
Django REST framework is a toolkit for building Web APIs. Prior to 3.18.2, DefaultContentNegotiation.get_accept_list in rest_framework/negotiation.py accepts an unbounded number and aggregate size of Accept tokens, while select_renderer in that file repeatedly invokes _MediaType parsing from rest_framework/utils/mediatypes.py for each attacker-controlled token, every renderer, and forced 406 renegotiation. A remote unauthenticated client can send many distinct media types containing large quoted parameter values with numerous semicolons, causing Django's parameter parser and DRF's repeated parsing structure to consume disproportionate CPU. Requests to any reachable endpoint can pin synchronous workers for prolonged periods, and concurrent requests can make the service unavailable until the requests stop. This issue is fixed in version 3.18.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| encode | django-rest-framework | < 3.18.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | djangorestframework | 3.18.3+ds1-1 | — |
| Debian 13 | djangorestframework | No fix yet | — |
| Debian 12 | djangorestframework | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | djangorestframework | No fix yet | — |
| Ubuntu 26.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 24.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 22.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 20.04 LTS | djangorestframework | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 16.04 LTS | djangorestframework | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-djangorestframework | 3.18.2-1.1 | openSUSE-SU-2026:12277-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | djangorestframework | < 3.18.2 | 3.18.2 | GHSA-33wh-fxxf-88vv |
Advisories 1
- openSUSE-SU-2026:12277-1 python313-djangorestframework-3.18.2-1.1 on GA media SUSE / openSUSE Security Updates · Oct 27, 2026