CVE-2024-22513: Improper Privilege Management in djangorestframework-simplejwt
djangorestframework-simplejwt before version 5.5.1 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 foruser method.
Published Mar 16, 2024 · Updated Sep 2, 2025
Affected packages
djangorestframework-simplejwt
- Ecosystem
- PyPI
- Affected
- < 5.5.1
- Fixed in
- 5.5.1
- Check
pip show djangorestframework-simplejwt
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
djangorestframework-simplejwt before version 5.5.1 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.
Credited to r3kumar, dmdhrumilmistry.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-22513
- https://github.com/dmdhrumilmistry/CVEs/tree/main/CVE-2024-22513
- https://github.com/jazzband/djangorestframework-simplejwt/blob/c791e987332ed5e22a86428160d6372b1d85ffae/rest_framework_simplejwt/tokens.py#L281
- https://github.com/jazzband/djangorestframework-simplejwt/issues/779
- https://github.com/jazzband/djangorestframework-simplejwt/pull/872
- https://github.com/jazzband/djangorestframework-simplejwt/pull/873
- https://github.com/jazzband/djangorestframework-simplejwt/pull/891
- https://github.com/jazzband/djangorestframework-simplejwt/commit/14e8b2cf5fa0df954af82ff3926fa6d6c4ecf13e
- https://github.com/jazzband/djangorestframework-simplejwt/commit/1ad763bfe73936515aa4756263338c63866364c9
- https://github.com/jazzband/djangorestframework-simplejwt/commit/a2d0a0201b6123536ecf76cd4d0ec7389317d0a7
- https://github.com/advisories/GHSA-5vcc-86wm-547q
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
