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 package | Versions | Reported by |
|---|---|---|
| django | from 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.6 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 5.2 before 5.2.15, from 6.0 before 6.0.6 | NVD |
| django (Bitnami) | from 5.2.0 before 5.2.15, from 6.0.0 before 6.0.6 | Bitnami Vulnerability Database |
All scores
| DSF | 3.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| DSF | 2.3low CVSS:4.0 | 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 |
| GitHub | 3.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| GitHub | low CVSS:4.0 | 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 |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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/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 Database | low rating |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35193 changed 2026-06-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qpc8-7fxc-cm4p changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2026-35193 changed 2026-07-21 | Public domain |
| PyPA Advisory Database | PYSEC-2026-197 changed 2026-08-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2026-35193 changed 2026-09-08 | Apache-2.0 |