Description
Django 1.4 before 1.4.13, 1.5 before 1.5.8, 1.6 before 1.6.5, and 1.7 before 1.7b4 does not properly include the (1) Vary: Cookie or (2) Cache-Control header in responses, which allows remote attackers to obtain sensitive information or poison the cache via a request from certain browsers.
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.6.5-1 | — |
| Debian 13 | python-django | 1.6.5-1 | — |
| Debian 12 | python-django | 1.6.5-1 | — |
| Debian 7 | python-django | 1.4.5-1+deb7u7 | DSA-2934-1 |
| Debian 6.0 | python-django | 1.2.3-3+squeeze10 | DSA-2934-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | python-django | 1.6.1-2ubuntu0.3 | USN-2212-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.4, < 1.4.13 | 1.4.13 | GHSA-q7q2-qf2q-rw3w |
| PyPI | django | >= 1.5, < 1.5.8 | 1.5.8 | GHSA-q7q2-qf2q-rw3w |
| PyPI | django | >= 1.6, < 1.6.5 | 1.6.5 | GHSA-q7q2-qf2q-rw3w |
| PyPI | django | >= 1.7a1, < 1.7b4 | 1.7b4 | GHSA-q7q2-qf2q-rw3w |
| PyPI | django | >= 1.4, < 1.4.13 · >= 1.5, < 1.5.8 · >= 1.6, < 1.6.5 · >= 1.7a0, < 1.7b4 | 1.4.13, 1.5.8, 1.6.5, 1.7b4 | PYSEC-2014-19 |
Advisories 2
- DSA-2934-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2212-1 python-django vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
References
- 61281 third-party-advisory
- DSA-2934 vendor-advisory
- USN-2212-1 vendor-advisory
- openSUSE-SU-2014:1132 vendor-advisory
- [oss-security] 20140514 Re: CVE Reuest: Django: Malformed URLs from user input incorrectly validated mailing-list
- https://www.djangoproject.com/weblog/2014/may/14/security-releases-issued/
- [oss-security] 20140514 CVE Reuest: Django: Malformed URLs from user input incorrectly validated mailing-list