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 in Django arises from the has_vary_header() function failing to normalize Vary header values by trimming whitespace before performing comparisons. This incomplete comparison (CWE-1023) can be exploited remotely to bypass cache controls and read cached responses that include whitespace-padded Vary headers. The affected versions explicitly include Django 5.2 prior to 5.2.15 and 6.0 prior to 6.0.6. No official remediation level or patch links are provided in the data, and no known exploits are reported in the wild.
Potential Impact
An attacker can leverage this vulnerability to read cached HTTP responses that should otherwise be protected by the Vary header. This could lead to unintended information disclosure. The impact is limited to confidentiality (partial read access) with no integrity or availability effects. The CVSS score of 3.1 reflects a low severity due to the complexity and limited impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided, users should monitor the Django project for updates addressing this issue. Until a fix is available, consider reviewing cache configurations and Vary header usage to minimize exposure.
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
Affected software
djangoproject
Django
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
The vulnerability in Django arises from the has_vary_header() function failing to normalize Vary header values by trimming whitespace before performing comparisons. This incomplete comparison (CWE-1023) can be exploited remotely to bypass cache controls and read cached responses that include whitespace-padded Vary headers. The affected versions explicitly include Django 5.2 prior to 5.2.15 and 6.0 prior to 6.0.6. No official remediation level or patch links are provided in the data, and no known exploits are reported in the wild.
Potential Impact
An attacker can leverage this vulnerability to read cached HTTP responses that should otherwise be protected by the Vary header. This could lead to unintended information disclosure. The impact is limited to confidentiality (partial read access) with no integrity or availability effects. The CVSS score of 3.1 reflects a low severity due to the complexity and limited impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided, users should monitor the Django project for updates addressing this issue. Until a fix is available, consider reviewing cache configurations and Vary header usage to minimize exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- DSF
- Date Reserved
- 2026-05-21T20:50:32.465Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a2037c7e29bf47b50c14ed3
Added to database: 06/03/2026, 14:18:47 UTC
Last enriched: 08/08/2026, 15:14:27 UTC
Last updated: 09/13/2026, 22:01:34 UTC
Views: 141
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.