{"id":"UBUNTU-CVE-2026-114137","details":"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.","modified":"2026-11-24T14:53:59.340859694Z","published":"2026-10-21T21:17:00Z","upstream":["CVE-2026-114137"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-114137"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-114137"},{"type":"REPORT","url":"https://github.com/encode/django-rest-framework/security/advisories/GHSA-xw6w-gcfp-cf8m"},{"type":"REPORT","url":"https://github.com/encode/django-rest-framework/commit/af3fabfd517307fbc5d500fba1ab8f6e25f220b0"}],"affected":[{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.3-2","3.3.1-1","3.3.2-1","3.3.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python-djangorestframework","binary_version":"3.3.2-2"},{"binary_name":"python3-djangorestframework","binary_version":"3.3.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-114137.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-2","3.7.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-djangorestframework","binary_version":"3.7.7-1"},{"binary_version":"3.7.7-1","binary_name":"python3-djangorestframework"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-114137.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9.0-2","3.10.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.10.2-1","binary_name":"python3-djangorestframework"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-114137.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.12.1-1","3.12.4-1","3.12.4-2","3.12.4-2ubuntu1","3.12.4-2.1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.12.4-2.1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-114137.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.14.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-114137.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.16.1-3","3.16.1-4","3.17.1+ds1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.17.1+ds1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-114137.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.16.1-1","3.16.1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.16.1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-114137.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}