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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-03 · Modified: 2026-06-03
- Aliases: GHSA-8cjm-8mp7-r2xf, BIT-django-2026-8404, PYSEC-2026-201, UBUNTU-CVE-2026-8404, DEBIAN-CVE-2026-8404, CGA-2mxf-p58r-974v, CGA-2q32-9hpw-f7fg, CGA-3hgq-rr9r-644q, CGA-4whp-3hw8-j6jg, CGA-5x2w-8hrr-99p2, CGA-6v26-3vvh-68g2, CGA-8r2g-wrfh-h2x2, CGA-9232-6jx4-59hq, CGA-95fp-286w-9w46, CGA-fc38-prxm-49px, CGA-h26g-vqh8-29p6, CGA-hj6h-r8x2-4r4h, CGA-jv6g-w2rf-wfjp, CGA-jvmm-q4hj-8q2h, CGA-mmxv-2pxj-9p5q, CGA-qqg6-hg66-v52h, CGA-rxw4-qcr5-xvrx, CGA-xm55-89wf-9px5, ALPINE-CVE-2026-8404
- Record: https://cvemate.com/vulnerability/CVE-2026-8404 · JSON: https://cvemate.com/vulnerability/CVE-2026-8404/json

## Description

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

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.274%, percentile 21.113%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine py3-django (Alpine Linux): \< 5.2.15-r0
- chainguard authentik-2025.12 (Chainguard): All versions (No fix recorded)
- chainguard authentik-fips-2025.12 (Chainguard): All versions (No fix recorded)
- chainguard awx (Chainguard): All versions (No fix recorded)
- chainguard openstack-horizon-2025.1 (Chainguard): All versions (No fix recorded)
- chainguard openstack-horizon-2025.1-fips (Chainguard): All versions (No fix recorded)
- chainguard openstack-horizon-2025.2 (Chainguard): All versions (No fix recorded)
- chainguard openstack-horizon-2025.2-fips (Chainguard): All versions (No fix recorded)
- chainguard openstack-horizon-2026.1 (Chainguard): \< 25.7.3\_git20260806-r1
- chainguard openstack-horizon-2026.1-fips (Chainguard): \< 25.7.3\_git20260806-r1
- debian python-django (Debian): All versions (No fix recorded) \| \< 3:5.2.15-1
- ubuntu python-django (Ubuntu): \< 2:2.2.12-1ubuntu0.29+esm10 \| \< 2:3.2.12-2ubuntu1.29 \| \< 3:4.2.11-1ubuntu1.18 \| All versions (No fix recorded) \| \< 3:5.2.9-0ubuntu4.3
- djangoproject django: ≥ 5.2, \< 5.2.15 \| ≥ 6.0, \< 6.0.6
- PyPI django (PyPI): \< 5.2.15 \| ≥ 6.0.0, \< 6.0.6 \| ≥ 6.0, \< 6.0.6

## 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/>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-8404>
- <https://github.com/django/django/commit/366d9ae6e8d1469c04e9ebdc1bcd098fc14a3b1e>
- <https://github.com/django/django/commit/b4330259ffbe1a031ed14daab1f35697460f10f2>
- <https://github.com/django/django/commit/d618d7ae4fec727d5b582bd24f803c28d17bf7cd>
- <https://docs.djangoproject.com/en/dev/releases/security>
- <https://github.com/django/django>
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-201.yaml>
- <https://www.djangoproject.com/weblog/2026/jun/03/security-releases>
- <https://github.com/advisories/GHSA-8cjm-8mp7-r2xf>
- <https://ubuntu.com/security/CVE-2026-8404>
- <https://www.cve.org/CVERecord?id=CVE-2026-8404>
- <https://ubuntu.com/security/notices/USN-8848-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-8404>
- <https://github.com/django/django/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8404.json>
- <https://pypi.org/project/Django/>
- <https://security.alpinelinux.org/vuln/CVE-2026-8404>

---

Data as of 2026-12-05T04:36:23.687Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
