CVE-2021-23385
JSON

5.4medium

Open Redirect

Severity
5.4medium CVSS:3.1 by snyk
Exploit likelihood
1.25% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-cg8c-gc2j-2wf7PYSEC-2026-809

Description

This affects all versions of package Flask-Security. When using the get_post_logout_redirect and get_post_login_redirect functions, 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. 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. **Note:** Flask-Security is not maintained anymore.

Affected

Product or packageVersionsReported by
Flask-Securitybefore unspecifiedCVE List
flask-security (PyPI)up to 3.0.0, before 5.5.1GitHub Advisory Database, PyPA Advisory Database
flask-security_project flask-securityNot 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
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory Database6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

What each source says

CVE List

This affects all versions of package Flask-Security. When using the get_post_logout_redirect and get_post_login_redirect functions, 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. 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. **Note:** Flask-Security is not maintained anymore.

GitHub Advisory Database

This affects all versions of package Flask-Security. When using the get_post_logout_redirect and get_post_login_redirect functions, 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. 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.

Note: Flask-Security is not maintained anymore.

NVD (es)

Esto afecta a todas las versiones del paquete Flask-Security. Cuando son usadas las funciones get_post_logout_redirect y get_post_login_redirect, es posible omitirse la comprobación de la URL y redirigir a un usuario a una URL arbitraria proporcionando múltiples barras diagonales traseras como \\\Ndevil.com/path. Esta vulnerabilidad sólo es explotable si es usado un servidor WSGI alternativo que no sea Werkzeug, o es modificado el comportamiento por defecto de Werkzeug usando "autocorrect_location_header=False. **Nota:** Flask-Security ya no es mantenido

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23385 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-cg8c-gc2j-2wf7 changed 2026-07-07CC-BY-4.0
NVDCVE-2021-23385 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-809 changed 2026-07-07CC-BY-4.0