Skip to content
OpenAdvisories
Medium · 5.4 CVE-2021-23385 EUVD-2022-7078GHSA-cg8c-gc2j-2wf7PYSEC-2026-809

Open Redirect

Published Aug 2, 2022 · Updated Sep 16, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— Flask-Security < unspecified unspecified

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 flask-security 5.0.2-1 —
Debian 13 flask-security 5.0.2-1 —
Debian 12 flask-security 5.0.2-1 —
Debian 10 flask-security 1.7.5-2+deb10u1 DLA-3545-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS flask-security 4.0.0-1ubuntu0.1 USN-6792-1
Ubuntu 20.04 LTS flask-security 1.7.5-2ubuntu0.20.04.1 USN-6792-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS flask-security 1.7.5-2ubuntu0.18.04.1~esm1 USN-6792-1
ReleasePackageFixed inAdvisory
SLES 15 SP4 python-Flask-Security-Too 3.4.2-150200.3.6.1 SUSE-SU-2022:3867-1
SLES 15 SP3 python-Flask-Security-Too 3.4.2-150200.3.6.1 SUSE-SU-2022:3867-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Flask-Security 5.5.2-1.1 openSUSE-SU-2024:14555-1
openSUSE Leap 15.4 python-Flask-Security 3.0.0-150100.4.3.1 SUSE-SU-2022:3834-1
openSUSE Leap 15.4 python-Flask-Security-Too 3.4.2-150200.3.6.1 SUSE-SU-2022:3867-1
openSUSE Leap 15.3 python-Flask-Security 3.0.0-150100.4.3.1 SUSE-SU-2022:3834-1
openSUSE Leap 15.3 python-Flask-Security-Too 3.4.2-150200.3.6.1 SUSE-SU-2022:3867-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI flask-security <= 3.0.0 — GHSA-cg8c-gc2j-2wf7
PyPI flask-security < 5.5.1 5.5.1 PYSEC-2026-809

Advisories 5

References