{"id":"CVE-2026-6907","published":"2026-05-05T14:50:02Z","modified":"2026-05-06T15:25:33Z","title":"Potential exposure of private data due to incorrect handling of Vary: * in UpdateCacheMiddleware","vendor":"djangoproject","product":"Django","tier":"tail","description":{"text":"An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14.\n`django.middleware.cache.UpdateCacheMiddleware` erroneously caches requests where the `Vary` header contained an asterisk (`'*'`). This can lead to private data being stored and served.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Ahmad Sadeddin for reporting this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00358,"percentile":0.30345,"provenance":"source"},"cwes":[{"id":"CWE-524","name":"Use of Cache Containing Sensitive Information"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory"]},{"url":"https://groups.google.com/g/django-announce","tags":["mailing-list"]},{"url":"https://www.djangoproject.com/weblog/2026/may/05/security-releases/","tags":["vendor-advisory"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":6.07},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"djangoproject","affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 6.0, < 6.0.5",">= 5.2, < 5.2.14"]}],"fixedVersions":[{"vendor":"djangoproject","product":"Django","versions":["6.0.5","5.2.14"]}],"capec":[{"id":"CAPEC-204","name":"Lifting Sensitive Data Embedded in Cache"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-05T17:03:42.610418Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=6.0, <6.0.5",">=5.2, <5.2.14"],"patched":["6.0.5","5.2.14"],"from":["GHSA-5hrc-gvxj-w55p","PYSEC-2026-55"],"provenance":"source"}],"summary":{"text":"The flaw is in Django's UpdateCacheMiddleware (django.middleware.cache) in the 6.0 series before 6.0.5 and the 5.2 series before 5.2.14, where responses whose Vary header contains an asterisk are incorrectly cached. An attacker who can send requests to an affected application, with user interaction required (such as a victim following a link or visiting a page), can cause private data to be stored in the cache and subsequently served to others, and unsupported earlier Django series were not evaluated and may also be affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:53Z"},"euvd":{"id":"EUVD-2026-27382","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-4292","published":"2026-04-07","fixed":"6.0.4","kev":false},{"cve":"CVE-2026-35192","published":"2026-05-05","fixed":"6.0.5","kev":false},{"cve":"CVE-2026-5766","published":"2026-05-05","fixed":"6.0.5","kev":false},{"cve":"CVE-2026-6907","published":"2026-05-05","fixed":"6.0.5","kev":false},{"cve":"CVE-2026-15307","published":"2026-08-04","fixed":"6.0.8","kev":false,"link":{"from":"CVE-2026-6907","to":"CVE-2026-15307","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"6.0.5","toFixed":"6.0.8","daysApart":91},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"5.2.14","toFixed":"5.2.17","daysApart":91}]}}],"package":"PyPI:Django"}}