VDB
Sign up
—

PYSEC-2020-40

Quick fix

PYSEC-2020-40 — drf-jwt: upgrade to the fixed version with the command below.

pip install --upgrade 'drf-jwt>=1.15.1'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/drf-jwt
Introduced in: 1.15.0Fixed in: 1.15.1
Fixpip install --upgrade 'drf-jwt>=1.15.1'

References