{"id":"CVE-2026-114137","published":"2026-10-21T20:06:57Z","modified":"2026-10-23T15:08:55Z","title":"Django REST framework: TokenProxy.delete() reports success and revokes nothing","vendor":"encode","product":"django-rest-framework","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00456,"percentile":0.31494,"provenance":"source"},"cwes":[{"id":"CWE-390","name":"Detection of Error Condition Without Action"},{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"references":[{"url":"https://github.com/encode/django-rest-framework/security/advisories/GHSA-xw6w-gcfp-cf8m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/encode/django-rest-framework/commit/af3fabfd517307fbc5d500fba1ab8f6e25f220b0","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/django-rest-framework/releases/tag/3.18.2","tags":["x_refsource_MISC"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":6.3},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"encode","affectedVersions":[{"vendor":"encode","product":"django-rest-framework","versions":[">= 3.12.0, < 3.18.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-23T14:54:10.614213Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"djangorestframework","vulnerableRanges":[">=3.12.0, <3.18.2"],"patched":["3.18.2"],"from":["GHSA-xw6w-gcfp-cf8m"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-107547","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-73228","published":"2026-08-11","fixed":"3.17.2","kev":false,"link":{"from":"CVE-2026-73228","to":"CVE-2026-114137","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:djangorestframework","fromFixed":"3.17.2","toFixed":"3.18.2","daysApart":71}]}},{"cve":"CVE-2026-73229","published":"2026-08-11","fixed":"3.17.2","kev":false},{"cve":"CVE-2026-114136","published":"2026-10-21","fixed":"3.18.2","kev":false},{"cve":"CVE-2026-114137","published":"2026-10-21","fixed":"3.18.2","kev":false},{"cve":"CVE-2026-114138","published":"2026-10-21","fixed":"3.18.2","kev":false}],"package":"PyPI:djangorestframework"}}