
CVE catalog
CVE-2026-48587
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 val
- Severity
- Medium · CVSS 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.37% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-django | sid | 3:5.2.18-2 | fixed |
| Debian | python-django | forky | 3:5.2.17-2 | fixed |
| Debian | python-django | trixie | 3:4.2.28-0+deb13u2 | vulnerable |
| Debian | python-django | trixie-security | 3:4.2.28-0+deb13u1 | vulnerable |
| Debian | python-django | bookworm | 3:3.2.25-0+deb12u3 | vulnerable |
| Debian | python-django | bookworm-security | 3:3.2.25-0+deb12u6 | fixed |
| Cpe | python-django | Not reported | Not reported | vulnerable |
| Cpe | django | Not reported | 5.2.15 | fixed |
| Cpe | django | Not reported | 6.0.6 | fixed |
| PyPI | django | Not reported | 6.0.6 | fixed |
| PyPI | django | Not reported | 6.0.6 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-django | source | sid | 3:5.2.15-1 | not yet assigned | Not reported | [1138775] |
| Debian | python-django | source | forky | 3:5.2.15-1 | not yet assigned | Not reported | [1138775] |
| Debian | python-django | source | trixie | (unfixed) | not yet assigned | Not reported | [1138775] |
| Debian | python-django | source | bookworm | 3:3.2.25-0+deb12u5 | not yet assigned | Not reported | [1138775] |
| Cpe | django | cpe | Not reported | 5.2.15 | Not reported | Not reported | Not reported |
| Cpe | django | cpe | Not reported | 6.0.6 | Not reported | Not reported | Not reported |
| PyPI | django | PyPI | Not reported | 6.0.6 | Not reported | GHSA-923M-GV2P-W5QP | Not reported |
| PyPI | django | PyPI | Not reported | 6.0.6 | Not reported | Not reported | Not reported |
Notes
[trixie] python-django: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-django]Affected
Source package: [python-django]
Details (6)
3:3.2.25-0+deb12u3· all · bookwormAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:3.2.25-0+deb12u3· all · bookwormAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
- [python-django-doc]Affected
Source package: [python-django]
Details (6)
3:3.2.25-0+deb12u3· all · bookwormAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:3.2.25-0+deb12u3· all · bookwormAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityAffected · Fixed:
3:3.2.25-0+deb12u5nvd · python-django · debian · bookworm; nvd · python-django · debian · 12
[Debian 13 (Trixie)]
- [python3-django]Affected
Source package: [python-django]
Details (6)
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
- [python-django-doc]Affected
Source package: [python-django]
Details (6)
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10989-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-48587]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-48587]
- [https://osv.dev/vulnerability/GHSA-923m-gv2p-w5qp]
- [https://security-tracker.debian.org/tracker/CVE-2026-48587]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-48587.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1807.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]