CVE-2021-23385: Flask-Security - Open Redirect
- Cve: CVE-2021-23385
- Name: Flask-Security - Open Redirect
- 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.
- Impact: Attackers can redirect users to malicious sites, potentially leading to phishing or user data compromise.
- Remediation: Since Flask-Security is no longer maintained, consider migrating to a supported security framework and implement strict URL validation.
- Vulnerability type: open_redirect
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01247
- Epss percentile: 0.70093
- Assignee: [email protected]
- Published at: 2022-08-02T14:15:10Z
- Age in days: 1575
- Modified at: 2026-06-17T03:38:39Z
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-23385
- Nvd status: modified
- Checked, none or zero: vulnerability impact, patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-601 | URL Redirection to Untrusted Site |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234 | nvd | 2022-08-02 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234 | Exploit, Third Party Advisory |
| https://github.com/mattupstate/flask-security | 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 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| flask-security_project:flask-security | all versions | no | nvd | /v1/products/flask-security_project/flask-security |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mattupstate/flask-security | package | yes | /v1/repositories/mattupstate/flask-security |
Index
- Repositories: 4
- Repositories high signal: 2
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-08-02
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts