In accordance with our security release policy, the Django team is issuing Django 1.9.10 and 1.8.15. These release addresses a security issue detailed below. We encourage all users of Django to upgrade as soon as possible.
CVE-2016-7401: CSRF protection bypass on a site with Google Analytics
An interaction between Google Analytics and Django's cookie parsing could allow an attacker to set arbitrary cookies leading to a bypass of CSRF protection.
Thanks Sergey Bobrov for reporting the issue.
Affected supported versions
- Django 1.9
- Django 1.8
Django 1.10 and the master development branch are not affected.
Per our supported versions policy, Django 1.7 and older are no longer receiving security updates.
Resolution
Patches to resolve the issue have been applied to Django's 1.9 and 1.8 release branches. The patches may be obtained from the following changesets:
- On the 1.9 release branch
- On the 1.8 release branch
The following new releases have been issued:
- Django 1.9.10 (download Django 1.9.10 | 1.9.10 checksums)
- Django 1.8.15 (download Django 1.8.15 | 1.8.15 checksums)
The PGP key ID used for these releases is Tim Graham: 1E8ABDC773EDE252.
General notes regarding security reporting
As always, we ask that potential security issues be reported via private email to security@djangoproject.com, and not via Django's Trac instance or the django-developers list. Please see our security policies for further information.