PyPi: Flask-User

CVE-2021-23401

Safety vulnerability ID: 40904

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Jul 05, 2021 Updated at Nov 29, 2024
Scan your Python projects for vulnerabilities →

Advisory

This affects all versions of package Flask-User. When using the make_safe_url function, it is possible to bypass URL validation and redirect a user to an arbitrary URL by providing multiple back slashes such as /////evil.com/path or \\\evil.com/path. This vulnerability is only exploitable if an alternative WSGI server other than Werkzeug is used, or the default behaviour of Werkzeug is modified using 'autocorrect_location_header=False.

Affected package

flask-user

Latest version: 1.0.2.2

Customizable User Authentication & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.

Affected versions

Fixed versions

Vulnerability changelog

This affects all versions of package Flask-User. When using the make_safe_url function, it is possible to bypass URL validation and redirect a user to an arbitrary URL by providing multiple back slashes such as /////evil.com/path or \\\evil.com/path. This vulnerability is only exploitable if an alternative WSGI server other than Werkzeug is used, or the default behaviour of Werkzeug is modified using 'autocorrect_location_header=False. See CVE-2021-23401.


MISC:https://github.com/lingthio/Flask-User: https://github.com/lingthio/Flask-User
MISC:https://github.com/lingthio/Flask-User/blob/master/flask_user/user_manager__utils.py: https://github.com/lingthio/Flask-User/blob/master/flask_user/user_manager__utils.py
MISC:https://snyk.io/vuln/SNYK-PYTHON-FLASKUSER-1293188: https://snyk.io/vuln/SNYK-PYTHON-FLASKUSER-1293188

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

MEDIUM 6.1

CVSS v3 Details

MEDIUM 6.1
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
REQUIRED
Scope (S)
CHANGED
Confidentiality Impact (C)
LOW
Integrity Impact (I)
LOW
Availability Availability (A)
NONE

CVSS v2 Details

MEDIUM 5.8
Access Vector (AV)
NETWORK
Access Complexity (AC)
MEDIUM
Authentication (Au)
NONE
Confidentiality Impact (C)
PARTIAL
Integrity Impact (I)
PARTIAL
Availability Impact (A)
NONE