CVE-2020-5224: Session key exposure through session list in Django User Sessions
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.33419%
CWE
Published
1/24/2020
Updated
9/16/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
django-user-sessions | pip | < 1.7.1 | 1.7.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from session keys being rendered in HTML templates. The key evidence is in the commit diff showing removal of session_key references from session_list.html. The view responsible for rendering this template (likely a ListView subclass) and the template itself both contributed to the exposure. While no specific view function is shown in diffs, Django's pattern of URL 'user_sessions:session_list' implies a corresponding view that renders the vulnerable template. The high confidence comes from the direct template modification in the patch and test updates verifying session key removal.