CVE-2026-6907
Django Uses Cache Containing Sensitive Information
Reported by dsf · Published May 5, 2026
Django is fixed in 6.0.5 and 5.2.14 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Django | PyPI | 6.0.5, 5.2.14 |
| authentik-fips-2026.2 | Chainguard | 2026.2.1-r7 |
| authentik-2025.12 | Chainguard | 2025.12.4-r9 |
| authentik-2026.2 | Chainguard | 2026.2.1-r9 |
| py3-django | Alpine | 5.2.14-r0 |
| django | Bitnami | 6.0.5, 5.2.14 |
| authentik-fips-2025.12 | Chainguard | 2025.12.4-r7 |
| py3-django | Chainguard | 6.0.5-r0 |
| py3-django | Wolfi | 6.0.5-r0 |
| django | djangoproject | 6.0.5, 5.2.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | Django | 6.0, 6.0.5, 5.2 |
| PyPI | Django | 5.2.0, 6.0.0 |
| chainguard | authentik-fips-2026.2 | 0 |
| chainguard | authentik-2025.12 | 0 |
| chainguard | authentik-2026.2 | 0 |
| djangoproject | Django | 6.0, 6.0.5, 5.2 |
| alpine | py3-django | 0 |
| chainguard | authentik-fips-2025.12 | 0 |
| chainguard | py3-django | 0 |
| wolfi | py3-django | 0 |
Timeline
- May 5, 2026 CVE Published
- May 5, 2026 PoC Published
- May 5, 2026 Security Advisory (4 in total, the first dated here)
- May 6, 2026 EPSS Score (30 in total, the first dated here)
- May 6, 2026 CVE Updated
- Aug 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-6907
vulnetix vdb fixes CVE-2026-6907
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-6907/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Django security archive vendor-advisory
- Django releases announcements mailing-list
- Django security releases issued: 6.0.5 and 5.2.14 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-6907 advisory
- https://github.com/advisories/GHSA-5hrc-gvxj-w55p advisory
- https://docs.djangoproject.com/en/dev/releases/security url
- https://www.djangoproject.com/weblog/2026/may/05/security-releases url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-55.yaml advisory
- https://github.com/django/django url