{"id":"CVE-2026-6907","aliases":["CVE-2026-6907","GHSA-5hrc-gvxj-w55p","BIT-DJANGO-2026-6907","PYSEC-2026-55"],"related":[],"kind":"vulnerability","state":"published","title":"Potential exposure of private data due to incorrect handling of Vary: * in UpdateCacheMiddleware","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.\n\nDjango thanks Ahmad Sadeddin for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se descubrió un problema en 6.0 anterior a 6.0.5 y 5.2 anterior a 5.2.14.\n’django.middleware.cache.UpdateCacheMiddleware’ almacena en caché erróneamente las solicitudes donde el encabezado ’Vary’ contenía un asterisco (’*’). Esto puede llevar a que se almacenen y sirvan datos privados.\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 verse afectadas.\nDjango desea agradecer a Ahmad Sadeddin por informar sobre este problema.","source":"nvd"}],"published":"2026-05-05T14:50:02.594Z","modified":"2026-10-26T19:10:00.163Z","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:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"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:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"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-524"],"affected":[{"ranges":[{"type":"python","introduced":"6.0","fixed":"6.0.5","status":"affected"},{"type":"python","version":"6.0.5","status":"unaffected"},{"type":"python","introduced":"5.2","fixed":"5.2.14","status":"affected"},{"type":"python","version":"5.2.14","status":"unaffected"}],"vendor":"djangoproject","product":"Django","package":"django","repo":"https://github.com/django/django/","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.0","status":"affected","fixed":"6.0.5"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.14"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.2","fixed":"5.2.14"},{"status":"affected","introduced":"6.0","fixed":"6.0.5"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.14"},{"type":"ecosystem","introduced":"6.0","status":"affected","fixed":"6.0.5"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.14"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.0.5"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2026/may/05/security-releases/","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6907","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"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-55.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2026/may/05/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-5hrc-gvxj-w55p","tags":["advisory"],"sources":["pysec"]}],"credits":["Ahmad Sadeddin","Sarah Boyce"],"assigner":"DSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-05T17:03:42.610Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6907","url":"https://www.cve.org/CVERecord?id=CVE-2026-6907","licence":"CVE Terms of Use","modified":"2026-05-06T15:25:33.698Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5hrc-gvxj-w55p","url":"https://github.com/advisories/GHSA-5hrc-gvxj-w55p","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:45.732Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6907","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6907","licence":"Public domain","modified":"2026-10-26T19:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-55","url":"https://osv.dev/vulnerability/PYSEC-2026-55","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:11.904Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2026-6907","url":"https://osv.dev/vulnerability/BIT-DJANGO-2026-6907","licence":"Apache-2.0","modified":"2026-09-10T16:00:59.247Z"}],"updatedAt":"2026-11-25T22:59:20.620Z","epss":{"score":0.00358,"percentile":0.3158,"date":"2026-12-01T12:00:22.000Z"}}