GHSA-7h2m-m8vj-598h

Suggest an improvement
Source
https://github.com/advisories/GHSA-7h2m-m8vj-598h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-7h2m-m8vj-598h/GHSA-7h2m-m8vj-598h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7h2m-m8vj-598h
Aliases
Downstream
Related
Published
2026-05-05T18:33:24Z
Modified
2026-05-20T08:11:37.477222815Z
Severity
  • 2.3 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
Django Uses Persistent Cookies Containing Sensitive Information
Details

An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14. Response headers do not vary on cookies if a session is not modified, but SESSION_SAVE_EVERY_REQUEST is True. A remote attacker can steal a user's session after that user visits a cached public page. 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 thanks Cantina for reporting this issue.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-539"
    ],
    "github_reviewed_at": "2026-05-08T22:13:26Z",
    "nvd_published_at": "2026-05-05T16:16:12Z",
    "severity": "LOW"
}
References

Affected packages

PyPI / django

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0
Fixed
6.0.5

Affected versions

6.*
6.0
6.0.1
6.0.2
6.0.3
6.0.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-7h2m-m8vj-598h/GHSA-7h2m-m8vj-598h.json"

PyPI / django

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.2
Fixed
5.2.14

Affected versions

5.*
5.2
5.2.1
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6
5.2.7
5.2.8
5.2.9
5.2.10
5.2.11
5.2.12
5.2.13

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-7h2m-m8vj-598h/GHSA-7h2m-m8vj-598h.json"