Advisory

GHSA-5fq8-3q2f-4m5g

Also known as: CVE-2020-5224, PYSEC-2020-230

Summary

Session key exposure through session list in Django User Sessions

Details

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

Patches
Patch is under way.

Workarounds
Remove the session_key from the template.

References
_None._

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-01-24 19:56 UTC
Modified
2026-07-08 06:00 UTC

Affected packages and fixes

django-user-sessions

PyPI · All systems

Affected

  • introduced 0, fixed 1.7.1 (ecosystem)

Fixed versions

1.7.1

Fix

  • Fixed version 1.7.1
    pip install --upgrade django-user-sessions==1.7.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences