# CVE-2021-23401: Open Redirect

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-05T10:25:11.545Z
- Modified: 2026-06-17T03:38:41.707Z
- Also known as: GHSA-4298-89hc-6rfv, PYSEC-2021-337, SNYK-PYTHON-FLASKUSER-1293188
- Weaknesses: CWE-601
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- Flask-User: before unspecified
- flask-user (PyPI): up to 1.0.2.2; all versions
- flask-user_project flask-user: no versions given

## Every score

- snyk: CVSS:3.1 5.4 Medium `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: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <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> (advisory, third-party-advisory, web)
- <https://github.com/lingthio/Flask-User> (package, product, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-23401](https://www.cve.org/CVERecord?id=CVE-2021-23401), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-4298-89hc-6rfv](https://github.com/advisories/GHSA-4298-89hc-6rfv), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2021-23401](https://nvd.nist.gov/vuln/detail/CVE-2021-23401), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-337](https://osv.dev/vulnerability/PYSEC-2021-337), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-23401 · Whole record: https://cve.day/CVE-2021-23401.json · Rebuilt by cve.day 2026-11-25T22:58:02.431Z
