CVE-2026-6907: CWE-524: Use of Cache Containing Sensitive Information in djangoproject Django
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. Django would like to thank Ahmad Sadeddin for reporting this issue.
AI Analysis
Technical Summary
This vulnerability involves the django.middleware.cache.UpdateCacheMiddleware component erroneously caching HTTP responses when the Vary header includes an asterisk ('*'). This behavior can lead to sensitive or private information being cached and subsequently served to unauthorized clients. The issue affects Django versions 6.0 prior to 6.0.5 and 5.2 prior to 5.2.14, with possible impact on earlier unsupported versions such as 5.0.x, 4.1.x, and 3.2.x. The vulnerability is classified under CWE-524, indicating use of cache containing sensitive information. The CVSS 3.1 base score is 4.3 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction required, and limited confidentiality impact.
Potential Impact
The vulnerability can cause private data to be cached and served improperly due to incorrect handling of the Vary header with an asterisk. This may lead to unintended disclosure of sensitive information to unauthorized users. There is no indication of impact on integrity or availability. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not confirmed from the provided data; no official fix or vendor advisory is referenced. Users should check the official Django project advisories and update to versions 6.0.5 or later and 5.2.14 or later once confirmed. Until then, consider disabling or carefully configuring cache middleware to avoid caching responses with a Vary header containing '*'.
CVE-2026-6907: CWE-524: Use of Cache Containing Sensitive Information in djangoproject Django
Description
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. Django would like to thank Ahmad Sadeddin for reporting this issue.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves the django.middleware.cache.UpdateCacheMiddleware component erroneously caching HTTP responses when the Vary header includes an asterisk ('*'). This behavior can lead to sensitive or private information being cached and subsequently served to unauthorized clients. The issue affects Django versions 6.0 prior to 6.0.5 and 5.2 prior to 5.2.14, with possible impact on earlier unsupported versions such as 5.0.x, 4.1.x, and 3.2.x. The vulnerability is classified under CWE-524, indicating use of cache containing sensitive information. The CVSS 3.1 base score is 4.3 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction required, and limited confidentiality impact.
Potential Impact
The vulnerability can cause private data to be cached and served improperly due to incorrect handling of the Vary header with an asterisk. This may lead to unintended disclosure of sensitive information to unauthorized users. There is no indication of impact on integrity or availability. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not confirmed from the provided data; no official fix or vendor advisory is referenced. Users should check the official Django project advisories and update to versions 6.0.5 or later and 5.2.14 or later once confirmed. Until then, consider disabling or carefully configuring cache middleware to avoid caching responses with a Vary header containing '*'.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- DSF
- Date Reserved
- 2026-04-23T11:19:30.877Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fa1920cbff5d86100ff731
Added to database: 5/5/2026, 4:21:52 PM
Last enriched: 5/5/2026, 4:37:50 PM
Last updated: 5/6/2026, 3:55:33 AM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.