Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 1.3.1-1 | — |
| Debian 13 | python-django | 1.3.1-1 | — |
| Debian 12 | python-django | 1.3.1-1 | — |
| Debian 6.0 | python-django | 1.2.3-3+squeeze2 | DSA-2332-1 |
| Debian 5.0 | python-django | 1.0.2-1+lenny3 | DSA-2332-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | <= 1.2.7 | — | GHSA-h95j-h2rv-qrg4 |
| PyPI | django | >= 1.3, <= 1.3.1 | — | GHSA-h95j-h2rv-qrg4 |
| PyPI | django | < 1.2.7 · >= 1.3, < 1.3.1 | 1.2.7, 1.3.1 | PYSEC-2011-5 |
Advisories 1
- DSA-2332-1 python-django - several issues Debian Security (DSA / DLA) · Mar 9, 2026
References
- openSUSE-SU-2012:0653 vendor-advisory
- DSA-2332 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=737366
- 46614 third-party-advisory
- [oss-security] 20110911 CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws mailing-list
- https://www.djangoproject.com/weblog/2011/sep/10/127/
- [oss-security] 20110913 Re: CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws mailing-list
- https://www.djangoproject.com/weblog/2011/sep/09/