VDB
Sign up
—

PYSEC-2019-79

Quick fix

PYSEC-2019-79 — django: upgrade to the fixed version with the command below.

pip install --upgrade 'django>=1.11.21'

Details

An issue was discovered in Django 1.11 before 1.11.21, 2.1 before 2.1.9, and 2.2 before 2.2.2. The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, an unvalidated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django
Introduced in: 2.1Fixed in: 2.1.9
Fixpip install --upgrade 'django>=1.11.21'

References