CVE
CVE-2026-8404
CNA 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.
Affected versions
- django≥ 6.0.0, < 6.0.6Fixed in 6.0.6
- django< 5.2.15Fixed in 5.2.15
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory
- www.djangoproject.com/weblog/2026/jun/03/security-releases/ · Patch, Vendor Advisory
- github.com/advisories/GHSA-8cjm-8mp7-r2xf · Third Party Advisory
- osv.dev/vulnerability/GHSA-8cjm-8mp7-r2xf · Third Party Advisory
- github.com/django/django/commit/366d9ae6e8d1469c04e9ebdc1bcd098fc14a3b · Vendor Advisory
- github.com/django/django/commit/b4330259ffbe1a031ed14daab1f35697460f10 · Vendor Advisory
- github.com/django/django/commit/d618d7ae4fec727d5b582bd24f803c28d17bf7 · Vendor Advisory
- docs.djangoproject.com/en/dev/releases/security · Vendor Advisory
- www.djangoproject.com/weblog/2026/jun/03/security-releases · Vendor Advisory
- osv.dev/vulnerability/PYSEC-2026-201 · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.