Skip to content
OpenAdvisories
High · 7.5 CVE-2016-7401 EUVD-2016-0009GHSA-crhm-qpjc-cm64PYSEC-2016-3

Django CSRF Protection Bypass

Published Oct 3, 2016 · Updated Aug 6, 2024 · Assigned by mitre

Description

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 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.

ReleasePackageFixed inAdvisory
Debian 14 python-django 1:1.10-1 —
Debian 13 python-django 1:1.10-1 —
Debian 12 python-django 1:1.10-1 —
Debian 8 python-django 1.7.11-1+deb8u1 DSA-3678-1
Debian 7 python-django 1.4.22-1+deb7u1 DLA-649-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS python-django 1.8.7-1ubuntu5.2 USN-3089-1
Ubuntu 14.04 LTS python-django 1.6.1-2ubuntu0.15 USN-3089-1
ReleasePackageFixed inAdvisory
Red Hat OpenStack 9 python-django +1 1.8.15-1.el7ost RHSA-2016:2043
Red Hat OpenStack 8 python-django +1 1.8.15-1.el7ost RHSA-2016:2042
Red Hat OpenStack 7 python-django +2 1.8.15-1.el7ost RHSA-2016:2041
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenStack 6 python-django +2 1.6.11-6.el7ost RHSA-2016:2040
Red Hat OpenStack 5 python-django +2 1.6.11-6.el6ost RHSA-2016:2039, RHSA-2016:2038
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud 7 python-Django 1.8.19-3.4.1 SUSE-SU-2018:0973-1
SUSE OpenStack Cloud 6 python-Django 1.8.19-3.6.1 SUSE-SU-2018:1102-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django 3.2.7-2.3 openSUSE-SU-2026:11248-1, openSUSE-SU-2024:13887-1, openSUSE-SU-2024:11205-1
openSUSE Tumbleweed python-Django4 4.2.14-1.1 openSUSE-SU-2026:11235-1, openSUSE-SU-2024:14208-1
openSUSE Tumbleweed python-Django5 5.2.16-1.1 openSUSE-SU-2026:11270-1
openSUSE Tumbleweed python-Django6 6.0-1.1 openSUSE-SU-2026:10005-1
openSUSE Tumbleweed ruby3.2-rubygem-http-cookie 1.0.5-1.4 openSUSE-SU-2024:13158-1
openSUSE Tumbleweed rubygem-http-cookie 1.0.5-1.1 openSUSE-SU-2026:10349-1, openSUSE-SU-2025:14741-1, openSUSE-SU-2024:14073-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 1.8.15 1.8.15 GHSA-crhm-qpjc-cm64
PyPI django >= 1.9, < 1.9.10 1.9.10 GHSA-crhm-qpjc-cm64
PyPI django < 1.8.15 · >= 1.9, < 1.9.10 1.8.15, 1.9.10 PYSEC-2016-3

Advisories 23

References