VDB
Sign up
—

PYSEC-2011-5

Quick fix

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

pip install --upgrade 'django>=1.2.7'

Details

The CSRF protection mechanism in Django through 1.2.7 and 1.3.x through 1.3.1 does not properly handle web-server configurations supporting arbitrary HTTP Host headers, which allows remote attackers to trigger unauthenticated forged requests via vectors involving a DNS CNAME record and a web page containing JavaScript code.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References