CVE-2026-48588
LOW 2.3CVSS 4.0Django: cache middleware may expose private responses when unrelated request cookies are present
An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16.
UpdateCacheMiddleware and the cache_page() decorator cache responses that vary on cookies when the incoming request carries unrelated cookies, which allows remote attackers to read private data from the shared cache.
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 Chris Whyland for reporting this issue.
- Published
- 7 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
- NVD status
- Analyzed
- Weakness
- CWE-524
- Also known as
- BIT-django-2026-48588GHSA-3h9f-r86x-qvjxPYSEC-2026-2090
- Sources
- NVDJSONOSV GHSA-3h9f-r86x-qvjxJSONOSV PYSEC-2026-2090JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) | CVSS 4.0 | LOW 2.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.2, < 5.2.16 | 5.2.16 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 6.0, < 6.0.7 | 6.0.7 |
| OSV | PyPI | django | < 5.2.16 | 5.2.16 |
| OSV | PyPI | django | >= 6.0.0, < 6.0.7 | 6.0.7 |
| OSV | PyPI | django | >= 5.2, < 5.2.16; >= 6.0, < 6.0.7 | 5.2.16, 6.0.7 |
References
- https://docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory, WEB, FIX
- https://groups.google.com/g/django-announce · Release Notes, WEB, ADVISORY
- https://www.djangoproject.com/weblog/2026/jul/07/security-releases/ · Vendor Advisory, Patch, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-48588 · ADVISORY
- https://github.com/django/django/commit/64f9a2b2283fde3ec69fb0dfe441cf0f6f411ba3 · WEB
- https://github.com/django/django/commit/6e365f8d01f2ba0bbd90968d76a42600fb8bc4b1 · WEB
- https://github.com/django/django/commit/721685aa7799cc9327bd202cd1f70bd012ca95a7 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-2090.yaml · WEB
- https://github.com/advisories/GHSA-3h9f-r86x-qvjx · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Jul 2026)