{"items":[{"id":"NVI-00010655","kind":"vulnerability","title":"Django REST framework: TokenProxy.delete() reports success and revokes nothing","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-xw6w-gcfp-cf8m","CVE-2026-114137"],"plain_summary":"GitHub lists this reviewed advisory for djangorestframework. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-8c38c66a46fbb623292f0317e3e30fda"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-10-22T16:18:06.000Z","value":"7.4 high","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-8c38c66a46fbb623292f0317e3e30fda"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-8c38c66a46fbb623292f0317e3e30fda","url":"https://github.com/advisories/GHSA-xw6w-gcfp-cf8m","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-xw6w-gcfp-cf8m","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T22:07:30.906Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-8c38c66a46fbb623292f0317e3e30fda"],"technology":"djangorestframework","known_exclusions":[],"conditions_summary":"### Summary\n\nDeleting an authentication token through `TokenProxy` silently deletes nothing. The call raises no\nexception and reports success, the database row survives, and the token keeps authenticating. Any\napplication, admin integration or operational script that revokes credentials by calling `.delete()`\non a `TokenProxy` instance believes it has revoked a token that is still live.\n\n### Details\n\n`TokenProxy` overrides `pk` to return the user id (`rest_framework/authtoken/models.py:49-63`):\n\n```python\n@property\ndef pk(self):\n    return self.user_id\n```\n\nThe concrete `Token` model keys on `key`, not on an integer id. `Model.delete()` builds its delete\nquery from `pk`, so it emits:\n\n```sql\nDELETE FROM \"authtoken_token\" WHERE \"authtoken_token\".\"key\" IN ('1')\n```\n\nThat matches a user id against the 40-character key column. Nothing matches, nothing raises, and the\ncall returns `(0, {'authtoken.TokenProxy': 0})`.\n\nDRF already ships two workarounds for this same identity mismatch instead of a fix. In\n`rest_framework/authtoken/admin.py`, `TokenAdmin.delete_model` re-fetches the concrete row:\n\n```python\ndef delete_model(self, request, obj):\n    Token.objects.get(key=obj.key).delete()   ","public_affected_ranges":[">= 3.12.0, < 3.18.2"]}],"null_published_at":"2026-10-31T22:27:09.627Z","source_updated_at":"2026-10-22T16:18:06.000Z","source_disclosed_at":"2026-10-22T16:18:05.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T22:07:30.906Z"}],"next_cursor":null,"snapshot_revision":"42594"}