CVE-2020-5224
Session key exposure through session list in Django User Sessions
Impact
### 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: * Open an issue in [Bouke/django-user-sessions](https://github.com/Bouke/django-user-sessions/issues) * Email us at [bouke@haarsma.eu](mailto:bouke@haarsma.eu)
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | django-user-sessions | < 1.7.1 | 1.7.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Django-User-Sessions Project | Django-User-Sessions | before 1.7.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/Bouke/django-user-sessions/security/advisories/GHSA-5fq8-3q2f-4m5g
- https://github.com/jazzband/django-user-sessions/commit/f0c4077e7d1436ba6d721af85cee89222ca5d2d9
- https://github.com/advisories/GHSA-5fq8-3q2f-4m5g
- https://nvd.nist.gov/vuln/detail/CVE-2020-5224
- https://github.com/pypa/advisory-database/tree/main/vulns/django-user-sessions/PYSEC-2020-230.yaml