CVE-2021-23385
MEDIUM 6.1CVSS 3.1Flask-Security vulnerable to Open Redirect
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.
- Published
- 2 Aug 2022
- Last modified
- 7 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-cg8c-gc2j-2wf7PYSEC-2026-809
- Sources
- NVDJSONOSV GHSA-cg8c-gc2j-2wf7JSONOSV PYSEC-2026-809JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | flask-security_project | flask-securitycpe:2.3:a:flask-security_project:flask-security:*:*:*:*:*:*:*:* |
all versions | |
| OSV | PyPI | flask-security | <= 3.0.0 | |
| OSV | PyPI | flask-security | < 5.5.1 | 5.5.1 |
References
- https://github.com/mattupstate/flask-security · Product, Third Party Advisory, PACKAGE
- https://lists.debian.org/debian-lts-announce/2023/08/msg00034.html
- https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234 · Exploit, Third Party Advisory, WEB
- https://snyk.io/blog/url-confusion-vulnerabilities/ · Technical Description, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23385 · ADVISORY
- https://pypi.org/project/flask-security · PACKAGE
- https://github.com/advisories/GHSA-cg8c-gc2j-2wf7 · ADVISORY
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 2 Aug 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Oct 2022)