# CVE-2026-6907: Potential exposure of private data due to incorrect handling of Vary: * in UpdateCacheMiddleware

- Severity: Low 2.3 (CVSS:4.0, scored by DSF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-05-05T14:50:02.594Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-5hrc-gvxj-w55p, BIT-DJANGO-2026-6907, PYSEC-2026-55
- Weaknesses: CWE-524
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: DSF

## 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.

(As written by CVE List.)

## Affected

- django: from 6.0 before 6.0.5; from 5.2 before 5.2.14 (not affected: 6.0.5; 5.2.14)
- django (PyPI): from 6.0 before 6.0.5; from 5.2 before 5.2.14
- djangoproject django: from 5.2 before 5.2.14; from 6.0 before 6.0.5
- django (Bitnami): from 5.2.0 before 5.2.14; from 6.0.0 before 6.0.5

## Every score

- DSF: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- DSF: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 4.3 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, vendor-advisory)
- <https://groups.google.com/g/django-announce> (advisory, mailing-list, third-party-advisory, web)
- <https://www.djangoproject.com/weblog/2026/may/05/security-releases/> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6907> (advisory, web)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-55.yaml> (web)
- <https://www.djangoproject.com/weblog/2026/may/05/security-releases> (web)
- <https://github.com/advisories/GHSA-5hrc-gvxj-w55p> (advisory)

## Sources

- CVE List: [CVE-2026-6907](https://www.cve.org/CVERecord?id=CVE-2026-6907), CVE Terms of Use, modified 2026-05-06
- GitHub Advisory Database: [GHSA-5hrc-gvxj-w55p](https://github.com/advisories/GHSA-5hrc-gvxj-w55p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-6907](https://nvd.nist.gov/vuln/detail/CVE-2026-6907), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-55](https://osv.dev/vulnerability/PYSEC-2026-55), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2026-6907](https://osv.dev/vulnerability/BIT-DJANGO-2026-6907), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-6907 · Whole record: https://cve.day/CVE-2026-6907.json · Rebuilt by cve.day 2026-11-25T22:59:20.620Z
