CVE-2026-48588: CWE-524: Use of Cache Containing Sensitive Information in djangoproject Django
An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16. `UpdateCacheMiddleware` and the `cache_page()` decorator cache responses that vary on cookies when the incoming request carries unrelated cookies, which allows remote attackers to read private data from the shared cache. 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 Chris Whyland for reporting this issue.
AI Analysis
Technical Summary
This vulnerability arises from Django's caching system, specifically in UpdateCacheMiddleware and the cache_page() decorator, which cache responses that vary based on cookies. If an incoming request includes unrelated cookies, the cache may serve private data intended for other users, allowing remote attackers to access sensitive information from the shared cache. The issue affects Django 6.0 versions before 6.0.7 and 5.2 versions before 5.2.16. Unsupported earlier versions such as 5.0.x, 4.1.x, and 3.2.x were not evaluated but could potentially be vulnerable. The vulnerability is tracked as CWE-524 (Use of Cache Containing Sensitive Information).
Potential Impact
The vulnerability allows remote attackers to read sensitive private data from the shared cache due to improper handling of cached responses that vary on cookies. This can lead to unauthorized disclosure of information. The CVSS score of 4.2 reflects a medium impact with low confidentiality impact, no integrity or availability impact, and requires high attack complexity and user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official remediation level or patch links are provided, users should monitor djangoproject advisories for updates. Until a fix is available, consider disabling or carefully configuring caching mechanisms that vary on cookies to avoid caching sensitive data across users.
CVE-2026-48588: CWE-524: Use of Cache Containing Sensitive Information in djangoproject Django
Description
An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16. `UpdateCacheMiddleware` and the `cache_page()` decorator cache responses that vary on cookies when the incoming request carries unrelated cookies, which allows remote attackers to read private data from the shared cache. 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 Chris Whyland for reporting this issue.
CVSS v3.1
Score 4.2medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from Django's caching system, specifically in UpdateCacheMiddleware and the cache_page() decorator, which cache responses that vary based on cookies. If an incoming request includes unrelated cookies, the cache may serve private data intended for other users, allowing remote attackers to access sensitive information from the shared cache. The issue affects Django 6.0 versions before 6.0.7 and 5.2 versions before 5.2.16. Unsupported earlier versions such as 5.0.x, 4.1.x, and 3.2.x were not evaluated but could potentially be vulnerable. The vulnerability is tracked as CWE-524 (Use of Cache Containing Sensitive Information).
Potential Impact
The vulnerability allows remote attackers to read sensitive private data from the shared cache due to improper handling of cached responses that vary on cookies. This can lead to unauthorized disclosure of information. The CVSS score of 4.2 reflects a medium impact with low confidentiality impact, no integrity or availability impact, and requires high attack complexity and user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official remediation level or patch links are provided, users should monitor djangoproject advisories for updates. Until a fix is available, consider disabling or carefully configuring caching mechanisms that vary on cookies to avoid caching sensitive data across users.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- DSF
- Date Reserved
- 2026-05-21T20:50:32.466Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4d1440c9d9e3dbe35d5c79
Added to database: 07/07/2026, 14:59:12 UTC
Last enriched: 07/07/2026, 15:13:28 UTC
Last updated: 07/07/2026, 15:58:56 UTC
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.