{"id":"CVE-2021-23385","aliases":["CVE-2021-23385","GHSA-cg8c-gc2j-2wf7","PYSEC-2026-809"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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`.\n\n**Note:** Flask-Security is not maintained anymore.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete Flask-Security. Cuando son usadas las funciones get_post_logout_redirect y get_post_login_redirect, es posible omitirse la comprobación de la URL y redirigir a un usuario a una URL arbitraria proporcionando múltiples barras diagonales traseras como \\\\\\Ndevil.com/path. Esta vulnerabilidad sólo es explotable si es usado un servidor WSGI alternativo que no sea Werkzeug, o es modificado el comportamiento por defecto de Werkzeug usando \"autocorrect_location_header=False. **Nota:** Flask-Security ya no es mantenido","source":"nvd"}],"published":"2022-08-02T13:25:14.717Z","modified":"2026-07-07T11:56:49.533Z","severity":{"scorer":"snyk","scheme":"CVSS: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","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS: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","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"Flask-Security","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.0.0"}],"ecosystem":"PyPI","package":"flask-security","purl":"pkg:pypi/flask-security","source":"ghsa"},{"ranges":[],"vendor":"flask-security_project","product":"flask-security","cpe":"cpe:2.3:a:flask-security_project:flask-security:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.5.1"}],"ecosystem":"PyPI","package":"flask-security","purl":"pkg:pypi/flask-security","source":"pysec"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mattupstate/flask-security","tags":["package","product","third-party-advisory","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://snyk.io/blog/url-confusion-vulnerabilities/","tags":["technical-description","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00034.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23385","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://snyk.io/blog/url-confusion-vulnerabilities","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/flask-security","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cg8c-gc2j-2wf7","tags":["advisory"],"sources":["pysec"]}],"credits":["Noam Moshe of Claroty"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23385","url":"https://www.cve.org/CVERecord?id=CVE-2021-23385","licence":"CVE Terms of Use","modified":"2024-09-16T22:08:36.808Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cg8c-gc2j-2wf7","url":"https://github.com/advisories/GHSA-cg8c-gc2j-2wf7","licence":"CC-BY-4.0","modified":"2026-07-07T11:56:49.533Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23385","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23385","licence":"Public domain","modified":"2026-06-17T03:38:39.950Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-809","url":"https://osv.dev/vulnerability/PYSEC-2026-809","licence":"CC-BY-4.0","modified":"2026-07-07T11:45:45.877Z"}],"updatedAt":"2026-11-25T22:58:07.738Z","epss":{"score":0.01247,"percentile":0.70174,"date":"2026-12-01T12:00:22.000Z"}}