{"id":"CVE-2026-8404","published":"2026-06-03T13:16:29Z","modified":"2026-06-03T15:46:40Z","title":"Potential exposure of private data via case-sensitive Cache-Control directives in UpdateCacheMiddleware","vendor":"djangoproject","product":"Django","tier":"tail","description":{"text":"An issue was discovered in Django 5.2 before 5.2.15 and 6.0 before 6.0.6.\n`django.middleware.cache.UpdateCacheMiddleware` in Django does not match `Cache-Control` response directives case-insensitively, which allows remote attackers to read responses that were incorrectly cached because their `Cache-Control` directives used uppercase or mixed-case values.\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 Ahmed Badawe for reporting this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00274,"percentile":0.20237,"provenance":"source"},"cwes":[{"id":"CWE-178","name":"Improper Handling of Case Sensitivity"}],"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/jun/03/security-releases/","tags":["vendor-advisory"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":4.05},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"djangoproject","affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 6.0, < 6.0.6",">= 5.2, < 5.2.15"]}],"fixedVersions":[{"vendor":"djangoproject","product":"Django","versions":["6.0.6","5.2.15"]}],"capec":[{"id":"CAPEC-204","name":"Lifting Sensitive Data Embedded in Cache"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-03T15:46:33.911128Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"django","vulnerableRanges":["<5.2.15",">=6.0.0, <6.0.6",">=5.2, <5.2.15",">=6.0, <6.0.6"],"patched":["5.2.15","6.0.6"],"from":["GHSA-8cjm-8mp7-r2xf","PYSEC-2026-201"],"provenance":"source"}],"summary":{"text":"The flaw is in the UpdateCacheMiddleware component of Django (versions 5.2 before 5.2.15 and 6.0 before 6.0.6), which fails to match Cache-Control response directives case-insensitively. An unauthenticated remote attacker who can make requests to the application may be able to read responses that were cached incorrectly because their directives used uppercase or mixed-case values, and exploiting this requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:41Z"},"euvd":{"id":"EUVD-2026-34088","exploited":false,"provenance":"source"}}