CVE-2016-7401
Django CSRF Protection Bypass
Reported by mitre · Published October 3, 2016
Django is fixed in 1.9.10 and 1.8.15 (PyPI)
The cookie parsing code in Django before 1.8.15 and 1.9.x before 1.9.10, when used on a site with Google Analytics, allows remote attackers to bypass an intended CSRF protection mechanism by setting arbitrary cookies.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Django | PyPI | 1.9.10, 1.8.15 |
| python-django | Arch Linux | 1.10.1-1 |
| python-django | Ubuntu:14.04:LTS | 1.6.1-2ubuntu0.15 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | Django | 0, 1.9 |
| arch | python-django | 0 |
| n/a | n/a | * |
Timeline
- Sep 26, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 5, 2026 Security Advisory (3 in total, the first dated here)
- Oct 6, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-7401
vulnetix vdb fixes CVE-2016-7401
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-7401/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-3678 vendor-advisoryx_refsource_DEBIAN
- RHSA-2016:2040 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:2043 vendor-advisoryx_refsource_REDHAT
- 1036899 vdb-entryx_refsource_SECTRACK
- RHSA-2016:2041 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- RHSA-2016:2042 vendor-advisoryx_refsource_REDHAT
- USN-3089-1 vendor-advisoryx_refsource_UBUNTU
- 93182 vdb-entryx_refsource_BID
- RHSA-2016:2038 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:2039 vendor-advisoryx_refsource_REDHAT
- https://nvd.nist.gov/vuln/detail/CVE-2016-7401 advisory
- https://github.com/advisories/GHSA-crhm-qpjc-cm64 advisory
- https://github.com/django/django/commit/6118ab7d0676f0d622278e5be215f14fb5410b6a patch
- https://github.com/django/django/commit/6fe846a8f08dc959003f298b5407e321c6fe3735 patch
- https://github.com/django/django/commit/d1bc980db1c0fffd6d60677e62f70beadb9fe64a patch
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-3.yaml advisory
- https://web.archive.org/web/20200227223637/http://www.securityfocus.com/bid/93182 url
- https://web.archive.org/web/20210927195154/http://www.securitytracker.com/id/1036899 url
…and 1 more