{"id":"CVE-2026-8404","aliases":["CVE-2026-8404","GHSA-8cjm-8mp7-r2xf","BIT-DJANGO-2026-8404","PYSEC-2026-201"],"related":[],"kind":"vulnerability","state":"published","title":"Potential exposure of private data via case-sensitive Cache-Control directives in UpdateCacheMiddleware","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en Django 5.2 anterior a 5.2.15 y 6.0 anterior a 6.0.6.\n'django.middleware.cache.UpdateCacheMiddleware' en Django no compara las directivas de respuesta 'Cache-Control' sin distinguir entre mayúsculas y minúsculas, lo que permite a atacantes remotos leer respuestas que fueron almacenadas en caché incorrectamente porque sus directivas 'Cache-Control' usaban valores en mayúsculas o con una combinación de mayúsculas y minúsculas.\nSeries de Django anteriores y no compatibles (como 5.0.x, 4.1.x y 3.2.x) no fueron evaluadas y también podrían estar afectadas.\nDjango desea agradecer a Ahmed Badawe por informar de este problema.","source":"nvd"}],"published":"2026-06-03T13:16:29.593Z","modified":"2026-09-10T16:00:59.296Z","severity":{"scorer":"DSF","scheme":"CVSS:4.0","vector":"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","score":2.3,"rating":"LOW"},"severities":[{"scorer":"DSF","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","score":3.1,"rating":"LOW"},{"scorer":"DSF","scheme":"CVSS:4.0","vector":"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","score":2.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","score":3.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-178"],"affected":[{"ranges":[{"type":"python","introduced":"6.0","fixed":"6.0.6","status":"affected"},{"type":"python","version":"6.0.6","status":"unaffected"},{"type":"python","introduced":"5.2","fixed":"5.2.15","status":"affected"},{"type":"python","version":"5.2.15","status":"unaffected"}],"vendor":"djangoproject","product":"Django","package":"django","repo":"https://github.com/django/django/","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.15"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.2","fixed":"5.2.15"},{"status":"affected","introduced":"6.0","fixed":"6.0.6"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.15"},{"type":"ecosystem","introduced":"6.0","status":"affected","fixed":"6.0.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.15"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.0.6"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","fix","patch","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["advisory","article","mailing-list","release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2026/jun/03/security-releases/","tags":["advisory","fix","patch","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8404","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/366d9ae6e8d1469c04e9ebdc1bcd098fc14a3b1e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/b4330259ffbe1a031ed14daab1f35697460f10f2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/d618d7ae4fec727d5b582bd24f803c28d17bf7cd","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-201.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2026/jun/03/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8cjm-8mp7-r2xf","tags":["advisory"],"sources":["pysec"]}],"credits":["Ahmed Badawe","Jake Howard","Natalia Bidart"],"assigner":"DSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-03T15:46:33.911Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8404","url":"https://www.cve.org/CVERecord?id=CVE-2026-8404","licence":"CVE Terms of Use","modified":"2026-06-03T15:46:40.439Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8cjm-8mp7-r2xf","url":"https://github.com/advisories/GHSA-8cjm-8mp7-r2xf","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:48.806Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8404","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8404","licence":"Public domain","modified":"2026-07-21T19:10:00.107Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-201","url":"https://osv.dev/vulnerability/PYSEC-2026-201","licence":"CC-BY-4.0","modified":"2026-08-10T11:00:08.360Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2026-8404","url":"https://osv.dev/vulnerability/BIT-DJANGO-2026-8404","licence":"Apache-2.0","modified":"2026-09-10T16:00:59.296Z"}],"updatedAt":"2026-11-25T22:59:23.637Z","epss":{"score":0.00274,"percentile":0.21175,"date":"2026-12-01T12:00:22.000Z"}}