CVE-2021-23385 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mattupstate/flask-security | CVE | ProductThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/08/msg00034.html | CVE | |
| https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234 | CVE | ExploitThird Party Advisory |
| https://snyk.io/blog/url-confusion-vulnerabilities/ | CVE | Technical DescriptionThird Party Advisory |
| https://github.com/mattupstate/flask-security | [email protected] | ProductThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/08/msg00034.html | [email protected] | |
| https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234 | [email protected] | ExploitThird Party Advisory |
| https://snyk.io/blog/url-confusion-vulnerabilities/ | [email protected] | Technical DescriptionThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| flask-security project flask-security | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 28, 2023 | CVE Modified | [email protected] |
| Aug 9, 2022 | Initial Analysis | [email protected] |