VDB
Sign up
—

PYSEC-2022-19

Quick fix

PYSEC-2022-19 — django: upgrade to the fixed version with the command below.

pip install --upgrade 'django>=2.2.27'

Details

The {% debug %} template tag in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2 does not properly encode the current context. This may lead to XSS.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References