Skip to main content
EPSS 0.4%top 70%

CVE-2026-48587: CWE-1023: Incomplete Comparison with Missing Factors in djangoproject Django

0
Low
Published: 06/03/2026 (06/03/2026, 15:30:43 UTC)
Source: CVE Database V5
Vendor/Project: djangoproject
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

Affected software

djangoproject

Django

Affected versions
>=6.0 <6.0.6>=5.2 <5.2.15
django
pkg:pypi/django
Affected versions
=5.2=6.0
django
pkg:pypi/django
Affected versions
>=6.0 <6.0.6>=5.2 <5.2.15

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/08/2026, 15:14:27 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses