Live threats

All CVEs / Flask-security Project

CVE-2021-23385Flask-security Project Flask-security

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
No
Published
Aug 2, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-601
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Flask-security.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI flask-security ≤ 3.0.0 no fixed version —
PyPI flask-security < 5.5.1 5.5.1 pip install "flask-security>=5.5.1"

Per OSV / GitHub Advisories (GHSA-cg8c-gc2j-2wf7, PYSEC-2026-809). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
flask-security_projectflask-securityall

Official sources

References

Links published by the sources. Open them with care.