CVE-2020-10594: Django Rest Framework jwt allows obtaining new token from notionally invalidated token

drf-jwt Updated 02 Oct 2025

Summary

05/06/2020
Yes i
Critical
9.1

CVE-2020-10594: Django Rest Framework jwt allows obtaining new token from notionally invalidated token. Affects drf-jwt versions >= 1.15.0, < 1.15.1. Fixed in 1.15.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Django Rest Framework jwt is a package that provides JSON Web Token authentication support for Django REST Framework. It allows users to authenticate and authorize requests using JWT tokens. This vulnerability affects versions 1.15.x before 1.15.1 of the package. The package is a fork of jpadilla/django-rest-framework-jwt, which is no longer maintained.

Vulnerability Detail

The vulnerability (CVE-2020-10594) allows attackers with access to a notionally invalidated token to obtain a new, working token via the refresh endpoint. This is possible because the blacklist protection mechanism is incompatible with the token-refresh feature. The issue arises due to a flaw in the check_payload function of the rest_framework_jwt.utils module. An attacker can exploit this vulnerability to bypass token invalidation and gain unauthorized access to the system. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.1.

How To Fix

Minimum fixed version

1.15.1

This is the first release that contains the fix.

pip install --upgrade "drf-jwt==1.15.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. Upgrading to the fixed version is the recommended solution.

Conclusion

In conclusion, the CVE-2020-10594 vulnerability in drf-jwt allows attackers to obtain new tokens from notionally invalidated tokens, bypassing token invalidation and gaining unauthorized access to the system. Users should upgrade to version 1.15.1 or later to fix this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for drf-jwt →

Share this vulnerability

FAQ

Drf-jwt is a package that provides JSON Web Token authentication support for Django REST Framework.

This vulnerability allows attackers to obtain new, working tokens from notionally invalidated tokens, bypassing token invalidation and gaining unauthorized access to the system.

To fix this vulnerability, upgrade to version 1.15.1 or later of drf-jwt.

No, there is no known workaround. Upgrading to the fixed version is the recommended solution.

The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.1.

How To Fix

Minimum fixed version

1.15.1

This is the first release that contains the fix.

pip install --upgrade "drf-jwt==1.15.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback