Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

vulnerability

FreeBSD: VID-06492bd5-085a-4cc0-9743-e30164bdcb1c (CVE-2021-23385): py-flask-security -- user redirect to arbitrary URL vulnerability

Severity
6
CVSS
(AV:N/AC:M/Au:N/C:P/I:P/A:N)
Published
Aug 31, 2023
Added
Sep 1, 2023
Modified
Jun 15, 2026

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.

Solutions

freebsd-upgrade-package-py37-flask-securityfreebsd-upgrade-package-py38-flask-securityfreebsd-upgrade-package-py39-flask-securityfreebsd-upgrade-package-py310-flask-securityfreebsd-upgrade-package-py311-flask-security
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.