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 package | Versions | Reported by |
|---|---|---|
| Flask-Security | before unspecified | CVE List |
| flask-security (PyPI) | up to 3.0.0, before 5.5.1 | GitHub Advisory Database, PyPA Advisory Database |
| flask-security_project flask-security | Not specified | NVD |
All scores
| snyk | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 6.1medium CVSS:3.1 | CVSS: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
| https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234 | exploit, third-party-advisory, web | |
| https://github.com/mattupstate/flask-security | package, product, third-party-advisory | |
| https://snyk.io/blog/url-confusion-vulnerabilities/ | technical-description, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/08/msg00034.html | mailing-list | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23385 | advisory | |
| https://snyk.io/blog/url-confusion-vulnerabilities | web | |
| https://pypi.org/project/flask-security | package | |
| https://github.com/advisories/GHSA-cg8c-gc2j-2wf7 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23385 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cg8c-gc2j-2wf7 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2021-23385 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-809 changed 2026-07-07 | CC-BY-4.0 |