ADVISORIES

GitHub Advisory Database

GHSA-h95j-h2rv-qrg4

Django Cross-Site Request Forgery vulnerability

High No fix available CVE-2011-4140PYSEC-2011-5

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.

Affected packages

EcosystemPackageAffected versions
PyPIdjango
All versions up to and including 1.2.7
PyPIdjango
From 1.3 up to and including 1.3.1

References