CVE-2026-35193
JSON

2.3low

Potential exposure of private data via missing Vary: Authorization in UpdateCacheMiddleware

Severity
2.3low CVSS:4.0 by DSF
Exploit likelihood
0.37% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
DSF
Also known as
GHSA-qpc8-7fxc-cm4pBIT-DJANGO-2026-35193PYSEC-2026-197

Description

An issue was discovered in Django 5.2 before 5.2.15 and 6.0 before 6.0.6. `django.middleware.cache.UpdateCacheMiddleware` in Django does not add `Authorization` to the `Vary` response header for requests bearing that header without `Cache-Control: public`, which allows remote attackers to read private cached responses via unauthenticated requests to the same URL. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Shai Berger for reporting this issue.

Affected

Product or packageVersionsReported by
djangofrom 6.0 before 6.0.6, from 5.2 before 5.2.15
Not affected: 6.0.6, 5.2.15
CVE List
django (PyPI)from 5.2.0 before 5.2.15, from 6.0.0 before 6.0.6, from 5.2 before 5.2.15, from 6.0 before 6.0.6GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 5.2 before 5.2.15, from 6.0 before 6.0.6NVD
django (Bitnami)from 5.2.0 before 5.2.15, from 6.0.0 before 6.0.6Bitnami Vulnerability Database

All scores

DSF3.1low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
DSF2.3low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
GitHub3.1low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Bitnami Vulnerability Databaselow rating

Classification

CWE-524

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

An issue was discovered in Django 5.2 before 5.2.15 and 6.0 before 6.0.6. `django.middleware.cache.UpdateCacheMiddleware` in Django does not add `Authorization` to the `Vary` response header for requests bearing that header without `Cache-Control: public`, which allows remote attackers to read private cached responses via unauthenticated requests to the same URL. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Shai Berger for reporting this issue.

NVD (es)

Se descubrió un problema en Django 5.2 anterior a 5.2.15 y 6.0 anterior a 6.0.6. 'django.middleware.cache.UpdateCacheMiddleware' en Django no añade 'Autorización' al encabezado de respuesta 'Vary' para solicitudes que llevan ese encabezado sin 'Cache-Control: public', lo que permite a atacantes remotos leer respuestas privadas en caché a través de solicitudes no autenticadas a la misma URL. Series de Django anteriores y no soportadas (como 5.0.x, 4.1.x y 3.2.x) no fueron evaluadas y también podrían estar afectadas. Django desea agradecer a Shai Berger por informar de este problema.

References

https://docs.djangoproject.com/en/dev/releases/security/advisory, fix, patch, vendor-advisory
https://groups.google.com/g/django-announceadvisory, article, mailing-list, release-notes, web
https://www.djangoproject.com/weblog/2026/jun/03/security-releases/advisory, fix, patch, vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-35193advisory, web
https://github.com/django/django/commit/050a3dc276f9142067260e990e4d8d42d5e32863web
https://github.com/django/django/commit/664652f1a2dd80d8a4cd491b4313cad915ae6669web
https://github.com/django/django/commit/a2faa8e895926ac5d63f72879b5ccf671b5b4ba9web
https://docs.djangoproject.com/en/dev/releases/securityweb
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-197.yamlweb
https://www.djangoproject.com/weblog/2026/jun/03/security-releasesweb
https://github.com/advisories/GHSA-qpc8-7fxc-cm4padvisory

Sources

SourceRecordLicence
CVE ListCVE-2026-35193 changed 2026-06-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-qpc8-7fxc-cm4p changed 2026-08-07CC-BY-4.0
NVDCVE-2026-35193 changed 2026-07-21Public domain
PyPA Advisory DatabasePYSEC-2026-197 changed 2026-08-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2026-35193 changed 2026-09-08Apache-2.0