CVE-2024-22513
JSON

5.5medium

Improper Privilege Management in djangorestframework-simplejwt

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.80% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-5vcc-86wm-547qPYSEC-2026-1305

Description

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
djangorestframework-simplejwt (PyPI)before 5.5.1GitHub Advisory Database, PyPA Advisory Database

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHublow rating

Classification

CWE-269CWE-306

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

Djangorestframework-simplejwt versión 5.3.1 y anteriores es vulnerable a la divulgación de información. Un usuario puede acceder a los recursos de la aplicación web incluso después de que su cuenta haya sido deshabilitada debido a que faltan verificaciones de validación del usuario a través del método for_user.

References

https://github.com/dmdhrumilmistry/CVEs/tree/main/CVE-2024-22513web
https://nvd.nist.gov/vuln/detail/CVE-2024-22513advisory
https://github.com/jazzband/djangorestframework-simplejwt/issues/779web
https://github.com/jazzband/djangorestframework-simplejwt/pull/872web
https://github.com/jazzband/djangorestframework-simplejwt/pull/873web
https://github.com/jazzband/djangorestframework-simplejwt/pull/891web
https://github.com/jazzband/djangorestframework-simplejwt/commit/14e8b2cf5fa0df954af82ff3926fa6d6c4ecf13eweb
https://github.com/jazzband/djangorestframework-simplejwt/commit/1ad763bfe73936515aa4756263338c63866364c9web
https://github.com/jazzband/djangorestframework-simplejwt/commit/a2d0a0201b6123536ecf76cd4d0ec7389317d0a7web
https://github.com/jazzband/djangorestframework-simplejwtpackage
https://github.com/jazzband/djangorestframework-simplejwt/blob/c791e987332ed5e22a86428160d6372b1d85ffae/rest_framework_simplejwt/tokens.py#L281web
https://pypi.org/project/djangorestframework-simplejwtpackage

Sources

SourceRecordLicence
CVE ListCVE-2024-22513 changed 2024-11-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-5vcc-86wm-547q changed 2026-07-07CC-BY-4.0
NVDCVE-2024-22513 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1305 changed 2026-07-07CC-BY-4.0