{"id":"CVE-2026-6907","aliases":["GHSA-5hrc-gvxj-w55p","BIT-django-2026-6907","PYSEC-2026-55"],"title":"Django Uses Cache Containing Sensitive Information","summary":"Django Uses Cache Containing Sensitive Information","severity":"medium","cvss":4.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","vendor":"django","product":"django","ecosystem":"pip","affected":["django >= 6.0, < 6.0.5","django >= 5.2, < 5.2.14"],"patched":["django 6.0.5","django 5.2.14"],"published":"2026-05-05","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:50:45.732883899Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-5hrc-gvxj-w55p","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6907"},{"url":"https://docs.djangoproject.com/en/dev/releases/security"},{"url":"https://github.com/django/django"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-55.yaml"},{"url":"https://groups.google.com/g/django-announce"},{"url":"https://www.djangoproject.com/weblog/2026/may/05/security-releases"}],"tags":["osv","pip"],"epss":0.00358,"epssPercentile":0.29519,"ingestedAt":"2026-09-12T03:13:01.660Z","slug":"CVE-2026-6907","body":"## Overview\n\nAn 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.\n\nDjango thanks Ahmad Sadeddin for reporting this issue.\n\n## Affected packages\n\n- `django >= 6.0, < 6.0.5`\n- `django >= 5.2, < 5.2.14`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `django 6.0.5`\n- `django 5.2.14`","depth":"sunlit","depthScore":24,"depthScoreParts":{"impact":23.7,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}