VDB
Sign up
—

PYSEC-2015-5

Quick fix

PYSEC-2015-5 — django: upgrade to the fixed version with the command below.

pip install --upgrade 'django>=1.4.18'

Details

The django.util.http.is_safe_url function in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 does not properly handle leading whitespaces, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs, as demonstrated by a "\njavascript:" URL.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django
Introduced in: 0Fixed in: 1.4.18
Fixpip install --upgrade 'django>=1.4.18'

References