Summary
It was discovered that Django REST framework did not properly escape
certain strings in its browsable API viewer. A remote attacker could
possibly use this issue to perform cross-site scripting attacks. This issue
only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS.
(CVE-2020-25626)
It was discovered that Django REST framework did not properly handle
character encodings specified in JSON requests. A remote attacker could
possibly use this issue to cause Django REST framework to use excessive
resources, leading to a denial of service. (CVE-2026-114136)
It was discovered that Django REST framework did not properly revoke
authentication tokens in certain cases. Tokens that were believed to be
revoked could continue to be used, and an attacker could possibly use this
issue to retain unauthorized access. This issue only affected Ubuntu 22.04
LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-114137)
It was discovered that Django REST framework did not properly limit the
amount of content negotiation data it processed. A remote attacker could
possibly use this issue to cause Django REST framework to use excessive
resources, leading to a denial of service. (CVE-2026-114138)
Fixed packages 6
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | djangorestframework | 3.3.2-2ubuntu0.1~esm1 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | djangorestframework | 3.7.7-1ubuntu0.1~esm1 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | djangorestframework | 3.10.2-1ubuntu0.1~esm1 |
| Ubuntu · Pro 22.04 LTS Pro:22.04:LTS | djangorestframework | 3.12.4-2.1ubuntu1+esm1 |
| Ubuntu · Pro 24.04 LTS Pro:24.04:LTS | djangorestframework | 3.14.0-2ubuntu0.1~esm1 |
| Ubuntu · Pro 26.04 LTS Pro:26.04:LTS | djangorestframework | 3.16.1-3ubuntu0.1~esm1 |
Vulnerabilities 4
-
High 7.5
Django REST framework: JSONParser applies an attacker-named codec to the request stream
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 r…
-
High 7.5
Django REST framework: Accept header with many large quoted parameters burns ~19s of CPU per request in content negotiation
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 repeatedl…
-
High 7.4
Django REST framework: TokenProxy.delete() reports success and revokes nothing
Django REST framework is a toolkit for building Web APIs. From 3.12.0 until 3.18.2, TokenProxy.delete() in rest_framework/authtoken/models.py uses the proxy's user-id pk while the concrete Token token-string primary key identifies rows, so Django issues a del…
-
Medium 6.1
Cross-site Scripting (XSS) in Django REST Framework
A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those st…