Vulnerability · Published Aug 2, 2022 · Assigned by snyk

CVE-2021-23385Open Redirect

Medium 5.4

In plain English

A medium-severity security flaw in Flask-Security. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.2%top 30.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12flask-security5.0.2-1DEBIAN-CVE-2021-23385
Debian:13flask-security5.0.2-1DEBIAN-CVE-2021-23385
Debian:14flask-security5.0.2-1DEBIAN-CVE-2021-23385
PyPIflask-securityno fix listedGHSA-cg8c-gc2j-2wf7
PyPIflask-security5.5.1PYSEC-2026-809
Ubuntu:22.04:LTSflask-security4.0.0-1ubuntu0.1USN-6792-1
Ubuntu:22.04:LTSflask-security4.0.0-1ubuntu0.1UBUNTU-CVE-2021-23385

Affected products (as reported)

VendorProductVersions
n/a Flask-Security 0 – before unspecified

References