CVE-2021-23401
MEDIUM 6.1CVSS 3.1Open Redirect in Flask-User
This affects all versions of package Flask-User. When using the make_safe_url function, 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 or \\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.
- Published
- 5 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-4298-89hc-6rfvPYSEC-2021-337SNYK-PYTHON-FLASKUSER-1293188
- Sources
- NVDJSONOSV GHSA-4298-89hc-6rfvJSONOSV PYSEC-2021-337JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N | |
| 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 |
| 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 |
| OSV | GitHub | 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 |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | flask-user_project | flask-usercpe:2.3:a:flask-user_project:flask-user:*:*:*:*:*:*:*:* |
all versions | |
| OSV | PyPI | flask-user | <= 1.0.2.2 | |
| OSV | PyPI | flask-user | all versions |
References
- https://github.com/lingthio/Flask-User · Product, Third Party Advisory, PACKAGE, WEB
- https://github.com/lingthio/Flask-User/blob/master/flask_user/user_manager__utils.py · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-PYTHON-FLASKUSER-1293188 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-23401 · ADVISORY
- https://github.com/advisories/GHSA-4298-89hc-6rfv · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-user/PYSEC-2021-337.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 5 Jul 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Jul 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Aug 2021)