All CVEs / Flask-security Project
CVE-2021-23385Flask-security Project Flask-security
Medium 6.1 No auth needed
Follow: this CVE · Flask-security Project · Flask-security Project Flask-security We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Flask-security.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| flask-security_project | flask-security | all |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Third Party Advisory
- lists.debian.org
- security.snyk.io Exploit Third Party Advisory
- snyk.io Technical Description Third Party Advisory