# CVE-2021-23393: 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): 0.72%, higher than 54% of CVEs (2026-12-01)
- Published: 2021-06-10T23:20:10.252Z
- Modified: 2026-06-17T03:38:40.823Z
- Also known as: GHSA-pjc4-3w99-j7v4, PYSEC-2021-96, SNYK-PYTHON-FLASKUNCHAINED-1293189
- Weaknesses: CWE-601
- Assigned by: snyk

## Description

This affects the package Flask-Unchained before 0.9.0. When using the the _validate_redirect_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. 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-Unchained: from unspecified before 0.9.0
- flask-unchained (PyPI): before 0.9.0; before 71e36b28166f9ffbe0a991f51127f0984f7e6a40
- flask_unchained_project flask_unchained: before 0.9.0

## 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 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/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://snyk.io/vuln/SNYK-PYTHON-FLASKUNCHAINED-1293189> (advisory, patch, third-party-advisory, web)
- <https://github.com/briancappello/flask-unchained/commit/71e36b28166f9ffbe0a991f51127f0984f7e6a40> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23393> (advisory)
- <https://github.com/briancappello/flask-unchained/commit/2bfeedf1bc31df851cab8c66df0c432b10406aad> (web)
- <https://github.com/advisories/GHSA-pjc4-3w99-j7v4> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-unchained/PYSEC-2021-96.yaml> (web)

## Sources

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

---

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