Medium

Flask-Security vulnerable to Open Redirect

  • Disclosed: 07.10.2022
  • Updated: 11.10.2026 13:18

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) flask-security <= 3.0.0 no fix

References

CVSS score 6.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-601
Platform
Python (PyPI)
Package
flask-security
Disclosed
07.10.2022
Updated
11.10.2026 13:18

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-809 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-cg8c-gc2j-2wf7 - CC BY 4.0

Vulnerability history: flask-security

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
10.2022 06.2026
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • Medium 2

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 1
  1. Medium · 4.7 ghsa-w2j7-f3c6-g8cw < 5.8.1 5.8.1
  2. Flask-Security vulnerable to Open Redirect this entry
    Medium · 6.1 CVE-2021-23385 <= 3.0.0 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.