{"id":"GHSA-5fq8-3q2f-4m5g","summary":"Session key exposure through session list in Django User Sessions","details":"### Impact\nThe views provided by django-user-sessions 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.\n\n### Patches\nPatch is under way.\n\n### Workarounds\nRemove the session_key from the template.\n\n### References\n_None._\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Bouke/django-user-sessions](https://github.com/Bouke/django-user-sessions/issues)\n* Email us at [bouke@haarsma.eu](mailto:bouke@haarsma.eu)","aliases":["CVE-2020-5224","PYSEC-2020-230"],"modified":"2026-07-08T06:00:27.818107391Z","published":"2020-01-24T19:56:59Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-01-24T19:56:37Z","nvd_published_at":null,"cwe_ids":["CWE-287"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/Bouke/django-user-sessions/security/advisories/GHSA-5fq8-3q2f-4m5g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5224"},{"type":"WEB","url":"https://github.com/jazzband/django-user-sessions/commit/f0c4077e7d1436ba6d721af85cee89222ca5d2d9"},{"type":"PACKAGE","url":"https://github.com/Bouke/django-user-sessions"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-user-sessions/PYSEC-2020-230.yaml"}],"affected":[{"package":{"name":"django-user-sessions","ecosystem":"PyPI","purl":"pkg:pypi/django-user-sessions"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.1"}]}],"versions":["0.1.0","0.1.0-beta","0.1.0-dev","0.1.1","0.1.2","0.1.3","0.1.4","1.0.0","1.0.0-beta1","1.1.0","1.1.1","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.5.2","1.5.3","1.6.0","1.7.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/01/GHSA-5fq8-3q2f-4m5g/GHSA-5fq8-3q2f-4m5g.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N"},{"type":"CVSS_V4","score":"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"}]}