All reports
Medium

Session key exposure through session list in Django User Sessions

Affected versions

Version ranges need review.

Affected versions
< 1.7.1
Fixed version
1.7.1
Affected versions
Unknown
Fixed version
1.7.1

Exploitation

CVE-2020-5224

Probability of exploitation in the next 30 days: 0.53%

FIRST EPSS · 2026-11-23

Description

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:

Links