{"id":"CVE-2021-23393","aliases":["CVE-2021-23393","GHSA-pjc4-3w99-j7v4","PYSEC-2021-96","SNYK-PYTHON-FLASKUNCHAINED-1293189"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Esto afecta al paquete Flask-Unchained versiones anteriores a 0.9.0. Cuando se usa la función _validate_redirect_url, es posible omitir la comprobación de la URL y redireccionar a un usuario a una URL arbitraria proporcionando múltiples barras invertidas, como por ejemplo \\\\\\evil.com/path. Esta vulnerabilidad sólo es explotable si un servidor WSGI alternativo a Werkzeug es usado, o se modifica el comportamiento por defecto de Werkzeug usando \"autocorrect_location_header=False","source":"nvd"}],"published":"2021-06-10T23:20:10.252Z","modified":"2026-06-17T03:38:40.823Z","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:U/C:L/I:L/A:N","score":5.4,"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":"unspecified","fixed":"0.9.0","status":"affected"}],"product":"Flask-Unchained","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.9.0"}],"ecosystem":"PyPI","package":"flask-unchained","purl":"pkg:pypi/flask-unchained","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.9.0"}],"vendor":"flask_unchained_project","product":"flask_unchained","cpe":"cpe:2.3:a:flask_unchained_project:flask_unchained:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"71e36b28166f9ffbe0a991f51127f0984f7e6a40"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.9.0"}],"ecosystem":"PyPI","package":"flask-unchained","purl":"pkg:pypi/flask-unchained","repo":"https://github.com/briancappello/flask-unchained","source":"pysec"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-FLASKUNCHAINED-1293189","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/briancappello/flask-unchained/commit/71e36b28166f9ffbe0a991f51127f0984f7e6a40","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23393","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/briancappello/flask-unchained/commit/2bfeedf1bc31df851cab8c66df0c432b10406aad","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-pjc4-3w99-j7v4","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/flask-unchained/PYSEC-2021-96.yaml","tags":["web"],"sources":["ghsa"]}],"credits":["Noam Moshe of Claroty"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23393","url":"https://www.cve.org/CVERecord?id=CVE-2021-23393","licence":"CVE Terms of Use","modified":"2024-09-16T17:18:13.774Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pjc4-3w99-j7v4","url":"https://github.com/advisories/GHSA-pjc4-3w99-j7v4","licence":"CC-BY-4.0","modified":"2024-09-20T20:25:46.997Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23393","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23393","licence":"Public domain","modified":"2026-06-17T03:38:40.823Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-96","url":"https://osv.dev/vulnerability/PYSEC-2021-96","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:07.026Z"}],"updatedAt":"2026-11-25T22:58:01.781Z","epss":{"score":0.00716,"percentile":0.54986,"date":"2026-12-01T12:00:22.000Z"}}