Potential exposure of private data via empty and missing Vary headers
- State
- Published
- Severity
- 2.3 Low
- Published
- Nov 3, 2026
- Updated
- Nov 3, 2026
- Reserved
- Oct 20, 2026
Description
An issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19. The `django.middleware.cache.UpdateCacheMiddleware` and the `django.views.decorators.cache.cache_page()` decorator generate identical cache keys for requests that omit a header listed in the response’s `Vary` header and requests that include that header with an empty value, potentially allowing remote attackers to access private data cached for another request. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Andrew Gonzalez for reporting this issue.
| Product | Versions |
|---|---|
| Django djangoproject | 6.1 to before 6.1.3 Affected6.1.3 Not Affected6.0 to before 6.0.10 Affected6.0.10 Not Affected5.2 to before 5.2.19 Affected5.2.19 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 2.3 Low | DSF | |
| 3.1 | 3.1 Low | DSF |
Weaknesses
- CWE-524 Use of Cache Containing Sensitive Information
References
- Django security archiveVendor Advisory
- Django releases announcementsMailing List
- https://github.com/django/django/commit/c0b7e5e4e4546e8ddc58262f1945938bb9d9ac2dPatch
- https://github.com/django/django/commit/55e2e009b4f3996e5c55af7b22a8c41eb826e892Patch
- https://github.com/django/django/commit/2006a2b068766bf332f1afcc32b7614d8e5759a2Patch
- https://github.com/django/django/commit/9007fecd3633cfd90b093ebe106af564347c8aeePatch
- Django security releases issued: 6.1.3, 6.0.10, and 5.2.19Vendor Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.