# CVE-2026-6907: Potential exposure of private data due to incorrect handling of Vary: \* 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-05-05 · Modified: 2026-05-06
- Aliases: GHSA-5hrc-gvxj-w55p, BIT-django-2026-6907, PYSEC-2026-55, UBUNTU-CVE-2026-6907, DEBIAN-CVE-2026-6907, CGA-46v9-w877-xxrj, CGA-cqcq-j4x2-4765, CGA-gwcv-4g53-f6jh, CGA-h72m-p649-hcch, CGA-hqfq-395f-w3fw, CGA-j8p7-5v9v-x932, CGA-qr36-fwmf-h545, CGA-v4jv-x6rp-cxr4, CGA-v8f6-8689-p3wp, CGA-wcqh-8243-xq7w, CGA-5cqf-47qp-p625, CGA-gwcr-g6pr-mvpj, CGA-hf93-98fc-xgmp, CGA-pmc4-5j7m-5vw4, CGA-qm9g-9gqm-hfvv, CGA-v37r-8ghx-fxmv, CGA-v77m-r827-p573, CGA-v9qc-rmr5-ff74, ALPINE-CVE-2026-6907
- Record: https://cvemate.com/vulnerability/CVE-2026-6907 · JSON: https://cvemate.com/vulnerability/CVE-2026-6907/json

## Description

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

## 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.372%, percentile 33.196%, 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.14-r0
- chainguard authentik-2025.12 (Chainguard): \< 2025.12.4-r9
- chainguard authentik-2026.2 (Chainguard): \< 2026.2.1-r9
- chainguard authentik-fips-2025.12 (Chainguard): \< 2025.12.4-r7
- chainguard authentik-fips-2026.2 (Chainguard): \< 2026.2.1-r7
- chainguard py3-django (Chainguard): \< 6.0.5-r0
- chainguard py3.12-django (Chainguard): \< 6.0.5-r0
- chainguard py3.13-django (Chainguard): \< 6.0.5-r0
- wolfi py3-django (Wolfi): \< 6.0.5-r0
- wolfi py3.12-django (Wolfi): \< 6.0.5-r0
- wolfi py3.13-django (Wolfi): \< 6.0.5-r0
- debian python-django (Debian): All versions (No fix recorded) \| \< 3:5.2.14-1
- ubuntu python-django (Ubuntu): \< 1.6.11-0ubuntu1.3+esm12 \| \< 1.8.7-1ubuntu5.15+esm13 \| \< 1:1.11.11-1ubuntu1.21+esm17 \| \< 2:2.2.12-1ubuntu0.29+esm10 \| \< 2:3.2.12-2ubuntu1.27 \| \< 3:4.2.11-1ubuntu1.16 \| \< 3:5.2.4-1ubuntu2.5 \| \< 3:5.2.9-0ubuntu4.1
- djangoproject django: ≥ 5.2, \< 5.2.14 \| ≥ 6.0, \< 6.0.5
- PyPI django (PyPI): ≥ 5.2, \< 5.2.14 \| ≥ 6.0, \< 6.0.5

## References

- <https://docs.djangoproject.com/en/dev/releases/security/>
- <https://groups.google.com/g/django-announce>
- <https://www.djangoproject.com/weblog/2026/may/05/security-releases/>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6907>
- <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-55.yaml>
- <https://www.djangoproject.com/weblog/2026/may/05/security-releases>
- <https://github.com/advisories/GHSA-5hrc-gvxj-w55p>
- <https://ubuntu.com/security/CVE-2026-6907>
- <https://www.cve.org/CVERecord?id=CVE-2026-6907>
- <https://ubuntu.com/security/notices/USN-8232-1>
- <https://ubuntu.com/security/notices/USN-8848-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-6907>
- <https://github.com/django/django/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6907.json>
- <https://pypi.org/project/Django/>
- <https://security.alpinelinux.org/vuln/CVE-2026-6907>

---

Data as of 2026-12-05T05:13:11.967Z. 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
