9.1critical
Django Rest Framework jwt allows obtaining new token from notionally invalidated token
- Severity
- 9.1critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.62% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-fpjm-rp2g-3r4cPYSEC-2020-40
Description
An issue was discovered in drf-jwt 1.15.x before 1.15.1. It allows attackers with access to a notionally invalidated token to obtain a new, working token via the refresh endpoint, because the blacklist protection mechanism is incompatible with the token-refresh feature. NOTE: drf-jwt is a fork of jpadilla/django-rest-framework-jwt, which is unmaintained.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| drf-jwt (PyPI) | from 1.15.0 before 1.15.1 | GitHub Advisory Database, PyPA Advisory Database |
| styria django-rest-framework-json_web_tokens | from 1.15.0 before 1.15.1 | NVD |
All scores
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
An issue was discovered in drf-jwt 1.15.x before 1.15.1. It allows attackers with access to a notionally invalidated token to obtain a new, working token via the refresh endpoint, because the blacklist protection mechanism is incompatible with the token-refresh feature. NOTE: drf-jwt is a fork of jpadilla/django-rest-framework-jwt, which is unmaintained.
NVD (es)
Se detectó un problema en drf-jwt versiones 1.15.x anteriores a 1.15.1. Permite a atacantes con acceso a un token nocionalmente invalidado obtener un nuevo token de trabajo por medio del endpoint de actualización, porque el mecanismo de protección de lista negra es incompatible con la funcionalidad token-refresh. NOTA: drf-jwt es una derivación de jpadilla/django-rest-framework-jwt, que no es mantenida.
References
| https://github.com/Styria-Digital/django-rest-framework-jwt/issues/36 | issue-tracking, report, third-party-advisory, web | |
| https://pypi.org/project/drf-jwt/1.15.1/#history | package, release-notes, third-party-advisory, web | |
| https://github.com/jpadilla/django-rest-framework-jwt/issues/484 | issue-tracking, report, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-10594 | advisory | |
| https://github.com/Styria-Digital/django-rest-framework-jwt/commit/868b5c22ddad59772b447080183e7c7101bb18e0 | web | |
| https://github.com/Styria-Digital/django-rest-framework-jwt | package | |
| https://github.com/advisories/GHSA-fpjm-rp2g-3r4c | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/drf-jwt/PYSEC-2020-40.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-10594 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fpjm-rp2g-3r4c changed 2025-02-21 | CC-BY-4.0 |
| NVD | CVE-2020-10594 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-40 changed 2023-11-08 | CC-BY-4.0 |