CVEfocus › CVE database › CVE-2026-114137

CVE-2026-114137Django REST framework: TokenProxy.delete() reports success and revokes nothing

CVSS 7.4 HighEPSS 0.5% (higher than 31% of CVEs)Published 2026-10-21Updated 2026-10-23Assigner: GitHub_M

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.

CWE-390CWE-613

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

2Fixed
6Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10djangorestframeworkFix pendingUBUNTU-CVE-2026-114137
Ubuntu 26.04djangorestframeworkUnder investigationUBUNTU-CVE-2026-114137
Ubuntu 24.04djangorestframeworkUnder investigationUBUNTU-CVE-2026-114137
Ubuntu 22.04djangorestframeworkUnder investigationUBUNTU-CVE-2026-114137
Ubuntu 20.04djangorestframeworkFix pendingUBUNTU-CVE-2026-114137
Ubuntu 18.04djangorestframeworkFix pendingUBUNTU-CVE-2026-114137
Ubuntu 16.04djangorestframeworkFix pendingUBUNTU-CVE-2026-114137
Debian 14djangorestframeworkFixed3.18.3+ds1-1DEBIAN-CVE-2026-114137
Debian 13djangorestframeworkFix pendingDEBIAN-CVE-2026-114137
Debian 12djangorestframeworkFix pendingDEBIAN-CVE-2026-114137
PyPI librarydjangorestframeworkFixed3.18.2GHSA-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.

References

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.