{"id":"CVE-2021-23385","published":"2022-08-02T13:25:14Z","modified":"2024-09-16T22:08:36Z","title":"Open Redirect","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01247,"percentile":0.70055,"provenance":"source"},"cwes":[],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234","tags":[]},{"url":"https://github.com/mattupstate/flask-security","tags":[]},{"url":"https://snyk.io/blog/url-confusion-vulnerabilities/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00034.html","tags":["mailing-list"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":14.01},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"Flask-Security","versions":["< unspecified"]}],"affected":[{"ecosystem":"PyPI","package":"Flask-Security","vulnerableRanges":["<=3.0.0","<5.5.1"],"patched":["5.5.1"],"from":["GHSA-cg8c-gc2j-2wf7","PYSEC-2026-809"],"provenance":"source"}],"summary":{"text":"The open redirect flaw lives in Flask-Security's get_post_logout_redirect and get_post_login_redirect functions, which fail to properly validate URLs and can be bypassed by supplying multiple backslashes such as \\\\\\\\\\\\evil.com/path. An attacker can redirect a user to an arbitrary external URL, but only if user interaction is involved, no authentication is required, and the application runs under a WSGI server other than Werkzeug or has Werkzeug's autocorrect_location_header setting changed to False.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:49:51Z"},"euvd":{"id":"EUVD-2022-7078","exploited":false,"provenance":"source"}}