CVE-2026-6907
Description
An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14. `django.middleware.cache.UpdateCacheMiddleware` erroneously caches requests where the `Vary` header contained an asterisk (`'*'`). This can lead to private data being stored and served. 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 Ahmad Sadeddin for reporting this issue.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2026-6907
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2026-6907.html
Vendor advisory: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 — https://www.djangoproject.com/weblog/2026/may/05/security-releases/
Vendor advisory: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 — https://docs.djangoproject.com/en/dev/releases/security/
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | bookworm | affected | |
| debian | bullseye | affected | |
| debian | forky | affected | |
| debian | sid | fixed | 3:5.2.14-1 |
| debian | trixie | affected | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| djangoproject | django | {"startIncluding":"5.2","endExcluding":"5.2.14"} | 5.2.14 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-6907
- https://docs.djangoproject.com/en/dev/releases/security
- https://github.com/django/django
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2026/may/05/security-releases
- https://docs.djangoproject.com/en/dev/releases/security/
- https://www.djangoproject.com/weblog/2026/may/05/security-releases/
- https://www.suse.com/security/cve/CVE-2026-6907.html
- https://security-tracker.debian.org/tracker/CVE-2026-6907
- https://github.com/advisories/GHSA-5hrc-gvxj-w55p
CWEs
CWE-524
Verify integrity in audit chain (admin only). AS-IS.