Every CVE Search/ Get API key

CVE-2020-5224

Session key exposure through session list in Django User Sessions

6.5 MediumFix available

In Django User Sessions (django-user-sessions) before 1.7.1, the views provided 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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
Low
Availability
None

Exploit likelihood

0.53%Down 0.1 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 6.5

Session key exposure through session list in Django User Sessions

In Django User Sessions (django-user-sessions) before 1.7.1, the views provided 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.

Record
CVE-2020-5224
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Weakness
CWE-287
Updated
2026-11-02
EUVDEUVD-2020-0066 6.5

In Django User Sessions (django-user-sessions) before 1.7.1, the views provided 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.

Record
EUVD-2020-0066
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-5fq8-3q2f-4m5g 4.8

Session key exposure through session list in Django User Sessions

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:

Record
GHSA-5fq8-3q2f-4m5g
CVSS 4.0
4.8 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Weakness
CWE-287
Updated
2026-11-02
NVD 6.5

In Django User Sessions (django-user-sessions) before 1.7.1, the views provided 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.

Record
CVE-2020-5224
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
4.0 MediumAV:N/AC:L/Au:S/C:P/I:N/A:N
Weakness
CWE-287, CWE-326
Updated
2026-11-02
OSV 8.8

In Django User Sessions (django-user-sessions) before 1.7.1, the views provided 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.

Record
CVE-2020-5224
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-5fq8-3q2f-4m5g 4.8

Session key exposure through session list in Django User Sessions

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:

Record
GHSA-5fq8-3q2f-4m5g
CVSS 4.0
4.8 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Weakness
CWE-287
Updated
2026-11-02
OSVPYSEC-2020-230 No score

In Django User Sessions (django-user-sessions) before 1.7.1, the views provided 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.

Record
PYSEC-2020-230
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
django-user-sessions
PyPI
before 1.7.1
1.7.1
django-user-sessions
PyPI
before 1.7.1, plus listed versions
0.1.00.1.0-beta0.1.0-dev0.1.10.1.2
Show 16 moreShow less
0.1.30.1.41.0.01.0.0-beta11.1.01.1.11.2.01.3.01.3.11.4.01.5.01.5.11.5.21.5.31.6.01.7.0
1.7.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-5224 is a medium vulnerability (CVSS 6.5) in Django-user-sessions Project Django-user-sessions, published January 24, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.53%, the 44th percentile. Fixed in django-user-sessions 1.7.1.

References

MoveEnter Open