# CVE-2020-5224: Session key exposure through session list in Django User Sessions

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A: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.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2020-01-24T19:56:59.000Z
- Modified: 2026-07-08T06:00:27.818Z
- Also known as: GHSA-5fq8-3q2f-4m5g, PYSEC-2020-230
- Weaknesses: CWE-287, CWE-326
- Assigned by: GitHub_M

## Description

In Django User Sessions (django-user-sessions) before 1.7.1, the views provided allow users to terminate specific sessions. The session key is used to identify sessions, and thus included in the rendered HTML. In itself this is not a problem. However if the website has an XSS vulnerability, the session key could be extracted by the attacker and a session takeover could happen.

(As written by CVE List.)

## Affected

- Jazzband django-user-sessions: < 1.7.1
- django-user-sessions (PyPI): before 1.7.1; before f0c4077e7d1436ba6d721af85cee89222ca5d2d9
- django-user-sessions_project django-user-sessions: before 1.7.1

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/Bouke/django-user-sessions/security/advisories/GHSA-5fq8-3q2f-4m5g> (advisory, third-party-advisory, web)
- <https://github.com/jazzband/django-user-sessions/commit/f0c4077e7d1436ba6d721af85cee89222ca5d2d9> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5224> (advisory)
- <https://github.com/Bouke/django-user-sessions> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django-user-sessions/PYSEC-2020-230.yaml> (web)

## Sources

- CVE List: [CVE-2020-5224](https://www.cve.org/CVERecord?id=CVE-2020-5224), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-5fq8-3q2f-4m5g](https://github.com/advisories/GHSA-5fq8-3q2f-4m5g), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-5224](https://nvd.nist.gov/vuln/detail/CVE-2020-5224), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-230](https://osv.dev/vulnerability/PYSEC-2020-230), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-5224 · Whole record: https://cve.day/CVE-2020-5224.json · Rebuilt by cve.day 2026-11-25T22:57:50.670Z
