CVE-2026-114137Django 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 deletion query that matches no row and reports zero deletions without raising an error. Applications, administrative integrations, or operational scripts that revoke credentials through a TokenProxy instance can therefore believe revocation succeeded while the token remains live and continues authenticating. DRF's own TokenAdmin.delete_model workaround is not affected, but other callers can leave access available indefinitely because DRF tokens do not expire automatically. This issue is fixed in version 3.18.2.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | djangorestframework | Fix pending | UBUNTU-CVE-2026-114137 | |
| Ubuntu 26.04 | djangorestframework | Under investigation | UBUNTU-CVE-2026-114137 | |
| Ubuntu 24.04 | djangorestframework | Under investigation | UBUNTU-CVE-2026-114137 | |
| Ubuntu 22.04 | djangorestframework | Under investigation | UBUNTU-CVE-2026-114137 | |
| Ubuntu 20.04 | djangorestframework | Fix pending | UBUNTU-CVE-2026-114137 | |
| Ubuntu 18.04 | djangorestframework | Fix pending | UBUNTU-CVE-2026-114137 | |
| Ubuntu 16.04 | djangorestframework | Fix pending | UBUNTU-CVE-2026-114137 | |
| Debian 14 | djangorestframework | Fixed | 3.18.3+ds1-1 | DEBIAN-CVE-2026-114137 |
| Debian 13 | djangorestframework | Fix pending | DEBIAN-CVE-2026-114137 | |
| Debian 12 | djangorestframework | Fix pending | DEBIAN-CVE-2026-114137 | |
| PyPI library | djangorestframework | Fixed | 3.18.2 | GHSA-xw6w-gcfp-cf8m |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- encode django-rest-framework: affected: >= 3.12.0, < 3.18.2
References
- https://github.com/encode/django-rest-framework/security/advisories/GHSA-xw6w-gcfp-cf8m
- https://github.com/encode/django-rest-framework/commit/af3fabfd517307fbc5d500fba1ab8f6e25f220b0
- https://github.com/encode/django-rest-framework/releases/tag/3.18.2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.