CVE-2016-7401
HIGH 7.5CVSS 3.0Django CSRF Protection Bypass
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.
- Published
- 3 Oct 2016
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-254
- Also known as
- GHSA-crhm-qpjc-cm64PYSEC-2016-3
- Sources
- NVDJSONOSV GHSA-crhm-qpjc-cm64JSONOSV PYSEC-2016-3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* |
= 12.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
= 16.04 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
<= 1.8.14 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.0:*:*:*:*:*:*:* |
= 1.9.0 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.1:*:*:*:*:*:*:* |
= 1.9.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.2:*:*:*:*:*:*:* |
= 1.9.2 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.3:*:*:*:*:*:*:* |
= 1.9.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.4:*:*:*:*:*:*:* |
= 1.9.4 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.5:*:*:*:*:*:*:* |
= 1.9.5 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.6:*:*:*:*:*:*:* |
= 1.9.6 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.7:*:*:*:*:*:*:* |
= 1.9.7 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.8:*:*:*:*:*:*:* |
= 1.9.8 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.9.9:*:*:*:*:*:*:* |
= 1.9.9 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | PyPI | django | < 1.8.15 | 1.8.15 |
| OSV | PyPI | django | >= 1.9, < 1.9.10 | 1.9.10 |
| OSV | PyPI | django | < 1.8.15; >= 1.9, < 1.9.10 | 1.8.15, 1.9.10 |
References
- http://rhn.redhat.com/errata/RHSA-2016-2038.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-2039.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-2040.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-2041.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-2042.html · WEB, ADVISORY
- http://rhn.redhat.com/errata/RHSA-2016-2043.html · WEB, ADVISORY
- http://www.debian.org/security/2016/dsa-3678 · Third Party Advisory, WEB, ADVISORY
- http://www.securityfocus.com/bid/93182 · Third Party Advisory, WEB
- http://www.securitytracker.com/id/1036899 · Third Party Advisory, WEB
- http://www.ubuntu.com/usn/USN-3089-1 · Third Party Advisory, WEB, ADVISORY
- https://www.djangoproject.com/weblog/2016/sep/26/security-releases/ · Patch, Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2016-7401 · ADVISORY
- https://github.com/django/django/commit/6118ab7d0676f0d622278e5be215f14fb5410b6a · WEB
- https://github.com/django/django/commit/6fe846a8f08dc959003f298b5407e321c6fe3735 · WEB
- https://github.com/django/django/commit/d1bc980db1c0fffd6d60677e62f70beadb9fe64a · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-3.yaml · WEB
- https://web.archive.org/web/20200227223637/http://www.securityfocus.com/bid/93182 · WEB
- https://web.archive.org/web/20210927195154/http://www.securitytracker.com/id/1036899 · WEB
- https://github.com/advisories/GHSA-crhm-qpjc-cm64 · ADVISORY
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 3 Oct 2016)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Oct 2016)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 May 2022)