Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.7
CVE-2016-7401: Django on Google Analytics sites can be tricked by malicious cookies
CVE-2016-7401 · published 10 years ago
Summary
If you're using Django and Google Analytics, an attacker could potentially trick your site into allowing unauthorized actions. This is a concern if you're using Django versions 1.8.15 or earlier, or 1.9.x up to 1.9.10. To fix this, update to the latest version of Django.
What to do
- Update django software foundation django to version 1.8.15.
- Update django software foundation django to version 1.9.10.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | django software foundation | django |
< 1.8.15 >= 1.9, < 1.9.10 Fix: upgrade to 1.8.15
|
| – | canonical | ubuntu_linux |
12.04 14.04 16.04 cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* |
| – | djangoproject | django |
<= 1.8.14 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
| – | debian | debian_linux |
8.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
Original advisory text
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 settin...
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-7401
- http://rhn.redhat.com/errata/RHSA-2016-2038.html
- http://rhn.redhat.com/errata/RHSA-2016-2039.html
- http://rhn.redhat.com/errata/RHSA-2016-2040.html
- http://rhn.redhat.com/errata/RHSA-2016-2041.html
- http://rhn.redhat.com/errata/RHSA-2016-2042.html
- http://rhn.redhat.com/errata/RHSA-2016-2043.html
- http://www.debian.org/security/2016/dsa-3678
- http://www.ubuntu.com/usn/USN-3089-1
- https://web.archive.org/web/20200227223637/http://www.securityfocus.com/bid/9318...
- https://web.archive.org/web/20210927195154/http://www.securitytracker.com/id/103...
- https://github.com/django/django/commit/6fe846a8f08dc959003f298b5407e321c6fe3735
- https://github.com/django/django/commit/6118ab7d0676f0d622278e5be215f14fb5410b6a
- https://github.com/django/django/commit/d1bc980db1c0fffd6d60677e62f70beadb9fe64a
- https://www.djangoproject.com/weblog/2016/sep/26/security-releases
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-3.ya...
- https://github.com/advisories/GHSA-crhm-qpjc-cm64
- http://www.securityfocus.com/bid/93182 Third Party Advisory
- http://www.securitytracker.com/id/1036899 Third Party Advisory
- https://www.djangoproject.com/weblog/2016/sep/26/security-releases/ Patch Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-2547PK - Security Features
Timeline
Published3 Oct 2016
Updated31 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta