# CVE-2021-23385: 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.25%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-02T13:25:14.717Z
- Modified: 2026-07-07T11:56:49.533Z
- Also known as: GHSA-cg8c-gc2j-2wf7, PYSEC-2026-809
- Weaknesses: CWE-601
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- Flask-Security: before unspecified
- flask-security (PyPI): up to 3.0.0; before 5.5.1
- flask-security_project flask-security: 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 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A: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`
- PyPA Advisory Database: 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`

## References

- <https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234> (exploit, third-party-advisory, web)
- <https://github.com/mattupstate/flask-security> (package, 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> (mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23385> (advisory)
- <https://snyk.io/blog/url-confusion-vulnerabilities> (web)
- <https://pypi.org/project/flask-security> (package)
- <https://github.com/advisories/GHSA-cg8c-gc2j-2wf7> (advisory)

## Sources

- CVE List: [CVE-2021-23385](https://www.cve.org/CVERecord?id=CVE-2021-23385), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-cg8c-gc2j-2wf7](https://github.com/advisories/GHSA-cg8c-gc2j-2wf7), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2021-23385](https://nvd.nist.gov/vuln/detail/CVE-2021-23385), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-809](https://osv.dev/vulnerability/PYSEC-2026-809), CC-BY-4.0, modified 2026-07-07

---

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