{"id":"CVE-2021-23401","aliases":["CVE-2021-23401","GHSA-4298-89hc-6rfv","PYSEC-2021-337","SNYK-PYTHON-FLASKUSER-1293188"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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 backslashes 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`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete Flask-User. Cuando se usa la función make_safe_url, es posible omitir la comprobación de la URL y redirigir a un usuario a una URL arbitraria al proporcionar múltiples barras invertidas, tal y como /////evil.com/path o \\\\\\\\evil.com/path. Esta vulnerabilidad es sólo explotable si un servidor WSGI alternativo que no sea Werkzeug  es usado, o es modificado el comportamiento predeterminado de Werkzeug usando \"autocorrect_location_header=False","source":"nvd"}],"published":"2021-07-05T10:25:11.545Z","modified":"2026-06-17T03:38:41.707Z","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:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","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":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"Flask-User","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.0.2.2"}],"ecosystem":"PyPI","package":"flask-user","purl":"pkg:pypi/flask-user","source":"ghsa"},{"ranges":[],"vendor":"flask-user_project","product":"flask-user","cpe":"cpe:2.3:a:flask-user_project:flask-user:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"flask-user","purl":"pkg:pypi/flask-user","source":"pysec"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-FLASKUSER-1293188","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/lingthio/Flask-User","tags":["package","product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/lingthio/Flask-User/blob/master/flask_user/user_manager__utils.py","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23401","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-4298-89hc-6rfv","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/flask-user/PYSEC-2021-337.yaml","tags":["web"],"sources":["ghsa"]}],"credits":["Noam Moshe of Claroty"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23401","url":"https://www.cve.org/CVERecord?id=CVE-2021-23401","licence":"CVE Terms of Use","modified":"2024-09-16T17:15:15.113Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4298-89hc-6rfv","url":"https://github.com/advisories/GHSA-4298-89hc-6rfv","licence":"CC-BY-4.0","modified":"2024-09-20T18:22:30.355Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23401","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23401","licence":"Public domain","modified":"2026-06-17T03:38:41.707Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-337","url":"https://osv.dev/vulnerability/PYSEC-2021-337","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:07.511Z"}],"updatedAt":"2026-11-25T22:58:02.431Z","epss":{"score":0.01113,"percentile":0.65685,"date":"2026-11-30T12:00:22.000Z"}}