CVE-2021-23401
JSON

5.4medium

Open Redirect

Severity
5.4medium CVSS:3.1 by snyk
Exploit likelihood
1.11% (higher than 66% of CVEs)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-4298-89hc-6rfvPYSEC-2021-337SNYK-PYTHON-FLASKUSER-1293188

Description

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

Product or packageVersionsReported by
Flask-Userbefore unspecifiedCVE List
flask-user (PyPI)up to 1.0.2.2, all versionsGitHub Advisory Database, PyPA Advisory Database
flask-user_project flask-userNot specifiedNVD

All scores

snyk5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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 backslashes 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.

NVD (es)

Esto afecta a todas las versiones del paquete Flask-User. Cuando se usa la función make_safe_url, es posible omitir la comprobación de la URL y redirigir a un usuario a una URL arbitraria al proporcionar múltiples barras invertidas, tal y como /////evil.com/path o \\\\evil.com/path. Esta vulnerabilidad es sólo explotable si un servidor WSGI alternativo que no sea Werkzeug es usado, o es modificado el comportamiento predeterminado de Werkzeug usando "autocorrect_location_header=False

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23401 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-4298-89hc-6rfv changed 2024-09-20CC-BY-4.0
NVDCVE-2021-23401 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-337 changed 2023-11-08CC-BY-4.0