VDB
Sign up
HIGH7.5

PYSEC-2021-7

Quick fix

PYSEC-2021-7 — django: upgrade to the fixed version with the command below.

pip install --upgrade 'django>=2.2.21'

Details

In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django
Introduced in: 2.2Fixed in: 2.2.21
Fixpip install --upgrade 'django>=2.2.21'

References