# CVE-2026-48587: Potential exposure of private data via whitespace padding in Vary header

- Severity: Low 2.3 (CVSS:4.0, scored by DSF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-06-03T13:16:47.811Z
- Modified: 2026-09-10T16:01:31.267Z
- Also known as: GHSA-923m-gv2p-w5qp, BIT-DJANGO-2026-48587, PYSEC-2026-198
- Weaknesses: CWE-1023
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: DSF

## 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.

(As written by CVE List.)

## Affected

- django: from 6.0 before 6.0.6; from 5.2 before 5.2.15 (not affected: 6.0.6; 5.2.15)
- django (PyPI): before 5.2.15; from 6.0.0 before 6.0.6; from 5.2 before 5.2.15; from 6.0 before 6.0.6
- djangoproject django: from 5.2 before 5.2.15; from 6.0 before 6.0.6
- django (Bitnami): from 5.2.0 before 5.2.15; from 6.0.0 before 6.0.6

## Every score

- DSF: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- DSF: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, fix, patch, vendor-advisory)
- <https://groups.google.com/g/django-announce> (advisory, article, mailing-list, release-notes, web)
- <https://www.djangoproject.com/weblog/2026/jun/03/security-releases/> (advisory, fix, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48587> (advisory, web)
- <https://github.com/django/django/commit/1721035a72624aad7b38dd19b14013efd94b24b8> (web)
- <https://github.com/django/django/commit/42aa0b3364d312e7c6472258d8b0e9c0277fbf22> (web)
- <https://github.com/django/django/commit/9b62b0af71a14c657d19d95371630ba839e83d9a> (web)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-198.yaml> (web)
- <https://www.djangoproject.com/weblog/2026/jun/03/security-releases> (web)
- <https://github.com/advisories/GHSA-923m-gv2p-w5qp> (advisory)

## Sources

- CVE List: [CVE-2026-48587](https://www.cve.org/CVERecord?id=CVE-2026-48587), CVE Terms of Use, modified 2026-06-03
- GitHub Advisory Database: [GHSA-923m-gv2p-w5qp](https://github.com/advisories/GHSA-923m-gv2p-w5qp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48587](https://nvd.nist.gov/vuln/detail/CVE-2026-48587), Public domain, modified 2026-07-21
- PyPA Advisory Database: [PYSEC-2026-198](https://osv.dev/vulnerability/PYSEC-2026-198), CC-BY-4.0, modified 2026-08-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2026-48587](https://osv.dev/vulnerability/BIT-DJANGO-2026-48587), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-48587 · Whole record: https://cve.day/CVE-2026-48587.json · Rebuilt by cve.day 2026-11-25T22:59:23.634Z
