CVE-2026-48587: CWE-1023: Incomplete Comparison with Missing Factors in djangoproject Django
An issue was discovered in Django 5.2 before 5.2.15 and 6.0 before 6.0.6. `django.utils.cache.has_vary_header()` in Django does not strip leading or trailing whitespace from `Vary` response header values before comparison, which allows remote attackers to read cached responses via requests to URLs whose responses contain whitespace-padded Vary header values. 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 Navid Rezazadeh for reporting this issue.
AI Analysis
Technical Summary
The vulnerability identified as CVE-2026-48587 involves an incomplete comparison in Django's cache handling function has_vary_header(). Specifically, the function fails to trim whitespace from Vary header values before performing comparisons. This flaw can be leveraged by remote attackers to access cached responses that include whitespace-padded Vary headers, potentially bypassing intended cache controls. The issue affects Django versions 5.2 prior to 5.2.15 and 6.0 prior to 6.0.6, with earlier unsupported versions possibly affected as well. No official remediation level or patch links are provided in the available data, and no known exploits are reported in the wild.
Potential Impact
The impact is limited to the confidentiality of cached HTTP responses. Attackers may read cached responses that should otherwise be restricted due to improper handling of whitespace in Vary headers. There is no indication of integrity or availability impact. The CVSS score of 3.1 reflects a low severity vulnerability requiring user interaction and high attack complexity.
Mitigation Recommendations
Patch status is not yet confirmed — check the official Django vendor advisories for current remediation guidance. Since no official patch or remediation level is provided in the data, users should monitor Django project updates for fixed releases (notably versions 5.2.15 and 6.0.6 or later). Until a patch is applied, consider reviewing cache control configurations and response headers to minimize exposure to whitespace-padded Vary headers.
CVE-2026-48587: CWE-1023: Incomplete Comparison with Missing Factors in djangoproject Django
Description
An issue was discovered in Django 5.2 before 5.2.15 and 6.0 before 6.0.6. `django.utils.cache.has_vary_header()` in Django does not strip leading or trailing whitespace from `Vary` response header values before comparison, which allows remote attackers to read cached responses via requests to URLs whose responses contain whitespace-padded Vary header values. 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 Navid Rezazadeh for reporting this issue.
CVSS v3.1
Score 3.1low
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability identified as CVE-2026-48587 involves an incomplete comparison in Django's cache handling function has_vary_header(). Specifically, the function fails to trim whitespace from Vary header values before performing comparisons. This flaw can be leveraged by remote attackers to access cached responses that include whitespace-padded Vary headers, potentially bypassing intended cache controls. The issue affects Django versions 5.2 prior to 5.2.15 and 6.0 prior to 6.0.6, with earlier unsupported versions possibly affected as well. No official remediation level or patch links are provided in the available data, and no known exploits are reported in the wild.
Potential Impact
The impact is limited to the confidentiality of cached HTTP responses. Attackers may read cached responses that should otherwise be restricted due to improper handling of whitespace in Vary headers. There is no indication of integrity or availability impact. The CVSS score of 3.1 reflects a low severity vulnerability requiring user interaction and high attack complexity.
Mitigation Recommendations
Patch status is not yet confirmed — check the official Django vendor advisories for current remediation guidance. Since no official patch or remediation level is provided in the data, users should monitor Django project updates for fixed releases (notably versions 5.2.15 and 6.0.6 or later). Until a patch is applied, consider reviewing cache control configurations and response headers to minimize exposure to whitespace-padded Vary headers.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- DSF
- Date Reserved
- 2026-05-21T20:50:32.465Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2037c7e29bf47b50c14ed3
Added to database: 6/3/2026, 2:18:47 PM
Last enriched: 6/3/2026, 2:48:41 PM
Last updated: 6/4/2026, 4:58:24 AM
Views: 11
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.