CVE-2024-22513
Medium · 5.5CVSS
5.5
EPSS
0.8%
Published
Mar 16, 2024
CISA due date
—
Cloudanix analysis
A flaw in a popular authentication library lets users whose accounts were turned off keep accessing the application anyway.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing user validation checks in the for_user method of djangorestframework-simplejwt allows JWT tokens issued prior to account disablement to remain valid, permitting continued access to protected resources.
Why it matters to the business
Formerly authorized users whose accounts have been disabled can still reach application data and functionality, creating unauthorized access risks and potential regulatory exposure.
How an attack unfolds
An attacker obtains a valid JWT token while the account is active, then continues presenting that token to backend endpoints after the account is disabled; because for_user performs no status check the token grants full access without re-authentication.
How to fix it
Upgrade djangorestframework-simplejwt to the latest release that enforces user validation inside for_user, rotate any long-lived tokens, and add explicit disabled-account checks at the application layer.
How to confirm the fix worked
Confirm the installed package version exceeds 5.3.1, then test that tokens issued to a subsequently disabled account are rejected by protected endpoints.
Typical attack path
- Obtain a valid JWT token through normal authentication
- Trigger or observe account disablement
- Reuse the existing token against protected API endpoints
- Access resources without triggering account-status checks
How to detect it
Correlate authentication logs with account-disable events and look for continued resource access attempts using tokens issued before the disable timestamp.
What your security team should do
- Immediately upgrade djangorestframework-simplejwt across all environments
- Audit token issuance and refresh logic for disabled-account handling
- Add runtime checks that invalidate tokens when accounts are disabled
- Review logs for post-disable token usage as a short-term control
The record
djangorestframework-simplejwt version 5.3.1 and before is vulnerable to information disclosure. A user can access web application resources even after their account has been disabled due to missing user validation checks via the for_user method.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | djangorestframework-simplejwt | 0 | No fix |
| PyPI | djangorestframework-simplejwt | 0 | 5.5.1 |
| Debian:12 | python-djangorestframework-simplejwt | 0 | No fix |
| Debian:13 | python-djangorestframework-simplejwt | 0 | No fix |
| Ubuntu:22.04:LTS | python-djangorestframework-simplejwt | 0 | No fix |
| Ubuntu:24.04:LTS | python-djangorestframework-simplejwt | 0 | No fix |
| Ubuntu:24.10 | python-djangorestframework-simplejwt | 0 | No fix |
| Ubuntu:25.04 | python-djangorestframework-simplejwt | 0 | No fix |
| Ubuntu:25.10 | python-djangorestframework-simplejwt | 0 | No fix |
| openSUSE:Tumbleweed | python-djangorestframework-simplejwt | 0 | 5.5.1-1.1 |
Related vulnerabilities
- CVE-2026-114636 Traefik v3.7.13 before v3.7.14 contains an access-control bypass in the Kubernetes… CWE-306
- CVE-2026-112104 A flaw has been found in eremef bandcamp-player up to 1.8.33-beta. CWE-306
- CVE-2026-53714 Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or… CWE-306
- CVE-2026-89261 MoguBlog through 6.2 exposes Elasticsearch index management endpoints in the mogu_search… CWE-306
- CVE-2026-89250 WWBN AVideo through commit c3edcc274c389816d434acadac07ee78eaf330c1 contains an… CWE-306
- CVE-2026-89176 WeenyGenius, a computer lab management system developed by Howyar Technologies, has a… CWE-306
- CVE-2026-88285 GeoVision GV-LPC2211 V1.13 exposes a network-accessible PTZ control service without… CWE-306
- CVE-2026-87924 A security vulnerability has been detected in Rizwan17 inventory-management-system up to… CWE-306