Cross-site Request Forgery (CSRF) Affecting flask-security-too package, versions [3.3.0, 3.4.5)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.12% (48th 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 Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-FLASKSECURITYTOO-1056906
  • published10 Jan 2021
  • disclosed10 Jan 2021
  • creditAvamander

Introduced: 10 Jan 2021

CVE-2021-21241  (opens in a new tab)
CWE-352  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade Flask-Security-Too to version 3.4.5 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). The /login and /change endpoints can return the authenticated user's authentication token in response to a GET request. Since GET requests aren't protected with a CSRF token, this could lead to a malicious 3rd party site acquiring the authentication token.

CVSS Scores

version 3.1