Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-user-sessions
  4. ›
  5. CVE-2020-5224

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

January 24, 2020 (updated September 16, 2024)

The 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.

References

  • github.com/Bouke/django-user-sessions
  • github.com/Bouke/django-user-sessions/security/advisories/GHSA-5fq8-3q2f-4m5g
  • github.com/advisories/GHSA-5fq8-3q2f-4m5g
  • github.com/jazzband/django-user-sessions/commit/f0c4077e7d1436ba6d721af85cee89222ca5d2d9
  • github.com/pypa/advisory-database/tree/main/vulns/django-user-sessions/PYSEC-2020-230.yaml
  • nvd.nist.gov/vuln/detail/CVE-2020-5224

Code Behaviors & Features

Detect and mitigate CVE-2020-5224 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.1

Fixed versions

  • 1.7.1

Solution

Upgrade to version 1.7.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

pypi/django-user-sessions/CVE-2020-5224.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:36 +0000.