{"id":"CVE-2020-5224","aliases":["CVE-2020-5224","GHSA-5fq8-3q2f-4m5g","PYSEC-2020-230"],"related":[],"kind":"vulnerability","state":"published","title":"Session key exposure through session list in Django User Sessions","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Django User Sessions (django-user-sessions) versiones anteriores a 1.7.1, las vistas proporcionadas permiten a usuarios finalizar sesiones específicas. La clave de sesión es usada para identificar sesiones y, por lo tanto, es incluida en el renderizado HTML. En sí mismo esto no es un problema. Sin embargo, si el sitio web presenta una vulnerabilidad de tipo XSS, la clave de sesión podría ser extraída por parte del atacante y podría presentarse una toma de control de la sesión.","source":"nvd"}],"published":"2020-01-24T19:56:59.000Z","modified":"2026-07-08T06:00:27.818Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-287","CWE-326"],"affected":[{"ranges":[{"version":"< 1.7.1","status":"affected"}],"vendor":"Jazzband","product":"django-user-sessions","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.1"}],"ecosystem":"PyPI","package":"django-user-sessions","purl":"pkg:pypi/django-user-sessions","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.7.1"}],"vendor":"django-user-sessions_project","product":"django-user-sessions","cpe":"cpe:2.3:a:django-user-sessions_project:django-user-sessions:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"f0c4077e7d1436ba6d721af85cee89222ca5d2d9"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.1"}],"ecosystem":"PyPI","package":"django-user-sessions","purl":"pkg:pypi/django-user-sessions","repo":"https://github.com/jazzband/django-user-sessions","source":"pysec"}],"references":[{"url":"https://github.com/Bouke/django-user-sessions/security/advisories/GHSA-5fq8-3q2f-4m5g","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jazzband/django-user-sessions/commit/f0c4077e7d1436ba6d721af85cee89222ca5d2d9","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5224","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Bouke/django-user-sessions","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-user-sessions/PYSEC-2020-230.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-5224","url":"https://www.cve.org/CVERecord?id=CVE-2020-5224","licence":"CVE Terms of Use","modified":"2024-08-04T08:22:08.941Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5fq8-3q2f-4m5g","url":"https://github.com/advisories/GHSA-5fq8-3q2f-4m5g","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:27.818Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-5224","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5224","licence":"Public domain","modified":"2026-06-17T03:21:03.570Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-230","url":"https://osv.dev/vulnerability/PYSEC-2020-230","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:51.799Z"}],"updatedAt":"2026-11-25T22:57:50.670Z","epss":{"score":0.00527,"percentile":0.46073,"date":"2026-12-01T12:00:22.000Z"}}