Feed
5.3MEDIUM

CVE-2026-48587Django: has_vary_header may expose cached responses when Vary values contain whitespace

A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.4% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.4%
percentile 29%
Priority
23/100 low
how it is computed
Fix
Named by a source
CVE published 3 Jun 2026

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.4% (+0) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected< 5.2.15Fixed in5.2.15OSV (GHSA-923m-gv2p-w5qp)
    • Affected>= 6.0.0, < 6.0.6Fixed in6.0.6OSV (GHSA-923m-gv2p-w5qp)
    • Affected>= 5.2, < 5.2.15Fixed in5.2.15OSV (PYSEC-2026-198)
    • Affected>= 6.0, < 6.0.6Fixed in6.0.6OSV (PYSEC-2026-198)
  • djangoproject django product:djangoproject/django

    • Affected>= 6.0, < 6.0.6Affected range ends before6.0.6as published by CNA (CVE List)
    • Affected>= 5.2, < 5.2.15Affected range ends before5.2.15as published by CNA (CVE List)
    • Affected>= 5.2, < 5.2.15Affected range ends before5.2.15as published by CPE data (via the NVD API)
    • Affected>= 6.0, < 6.0.6Affected range ends before6.0.6as published by CPE data (via the NVD API)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
5.3 MEDIUM (version 3.1)
Score from
NVD
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Weakness
CWE-1023
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
no
Assigned by
6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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.

Update history

  • 3 Jun 2026Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 11 min ago · osv 11 min ago · nvd 71 min ago · epss 10 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2026-48587, GHSA-923m-gv2p-w5qp, PYSEC-2026-198