Session Key Exposure Affecting django-user-sessions package, versions [,1.7.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Session Key Exposure vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DJANGOUSERSESSIONS-543286
  • published26 Jan 2020
  • disclosed24 Jan 2020
  • creditUnknown

Introduced: 24 Jan 2020

CVE-2020-5224  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade django-user-sessions to version 1.7.1 or higher.

Overview

django-user-sessions is a Django sessions with a foreign key to the user.

Affected versions of this package are vulnerable to Session Key Exposure. 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.

CVSS Base Scores

version 3.1