
CVE catalog
CVE-2021-23385
flask-security: CVE-2021-23385
- Severity
- Medium · CVSS 5.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.25% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | flask-security | sid | 5.9.1-1 | fixed |
| Debian | flask-security | forky | 5.9.1-1 | fixed |
| Debian | flask-security | trixie | 5.6.1-1 | fixed |
| Debian | flask-security | bookworm | 5.1.2-1 | fixed |
| Ubuntu | flask-security | pro | 1.7.5-1 | vulnerable |
| Ubuntu | flask-security | pro | 1.7.5-2 | vulnerable |
| Ubuntu | flask-security | pro | 1.7.5-2ubuntu0.18.04.1~esm1 | fixed |
| Ubuntu | flask-security | 20.04 | 1.7.5-2 | vulnerable |
| Ubuntu | flask-security | 20.04 | 1.7.5-2ubuntu0.20.04.1 | fixed |
| Ubuntu | flask-security | 22.04 | 4.0.0-1 | vulnerable |
| Ubuntu | flask-security | 22.04 | 4.0.0-1ubuntu0.1 | fixed |
| Suse | python-Flask-Security-Too | linux enterprise module for basesystem 15 sp3 | 3.4.2-150200.3.6.1 | fixed |
| Suse | python-Flask-Security-Too | linux enterprise module for basesystem 15 sp4 | 3.4.2-150200.3.6.1 | fixed |
| Opensuse | python-Flask-Security-Too | leap 15.3 | 3.4.2-150200.3.6.1 | fixed |
| Opensuse | python-Flask-Security-Too | leap 15.4 | 3.4.2-150200.3.6.1 | fixed |
| Opensuse | python-Flask-Security | leap 15.3 | 3.0.0-150100.4.3.1 | fixed |
| Opensuse | python-Flask-Security | leap 15.4 | 3.0.0-150100.4.3.1 | fixed |
| Ubuntu | flask-security | pro | 1.7.5-1 | vulnerable |
| Ubuntu | flask-security | pro | 1.7.5-2 | vulnerable |
| Ubuntu | flask-security | pro | 1.7.5-2ubuntu0.18.04.1~esm1 | fixed |
| Ubuntu | flask-security | 20.04 | 1.7.5-2 | vulnerable |
| Ubuntu | flask-security | 20.04 | 1.7.5-2ubuntu0.20.04.1 | fixed |
| Ubuntu | flask-security | 22.04 | 4.0.0-1 | vulnerable |
| Ubuntu | flask-security | 22.04 | 4.0.0-1ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | flask-security | source | sid | 5.0.2-1 | not yet assigned | Not reported | [1021279] |
| Debian | flask-security | source | forky | 5.0.2-1 | not yet assigned | Not reported | [1021279] |
| Debian | flask-security | source | trixie | 5.0.2-1 | not yet assigned | Not reported | [1021279] |
| Debian | flask-security | source | bookworm | 5.0.2-1 | not yet assigned | Not reported | [1021279] |
| Ubuntu | flask-security | deb | pro | 1.7.5-2ubuntu0.18.04.1~esm1 | Not reported | USN-6792-1 | Not reported |
| Ubuntu | flask-security | deb | 20.04 | 1.7.5-2ubuntu0.20.04.1 | Not reported | USN-6792-1 | Not reported |
| Ubuntu | flask-security | deb | 22.04 | 4.0.0-1ubuntu0.1 | Not reported | USN-6792-1 | Not reported |
| Suse | python-Flask-Security-Too | rpm | linux enterprise module for basesystem 15 sp3 | 3.4.2-150200.3.6.1 | Not reported | SUSE-SU-2022:3867-1 | Not reported |
| Suse | python-Flask-Security-Too | rpm | linux enterprise module for basesystem 15 sp4 | 3.4.2-150200.3.6.1 | Not reported | SUSE-SU-2022:3867-1 | Not reported |
| Opensuse | python-Flask-Security-Too | rpm | leap 15.3 | 3.4.2-150200.3.6.1 | Not reported | SUSE-SU-2022:3867-1 | Not reported |
| Opensuse | python-Flask-Security-Too | rpm | leap 15.4 | 3.4.2-150200.3.6.1 | Not reported | SUSE-SU-2022:3867-1 | Not reported |
| Opensuse | python-Flask-Security | rpm | leap 15.3 | 3.0.0-150100.4.3.1 | Not reported | SUSE-SU-2022:3834-1 | Not reported |
| Opensuse | python-Flask-Security | rpm | leap 15.4 | 3.0.0-150100.4.3.1 | Not reported | SUSE-SU-2022:3834-1 | Not reported |
| Ubuntu | flask-security | deb | pro | 1.7.5-2ubuntu0.18.04.1~esm1 | Not reported | UBUNTU-CVE-2021-23385 | Not reported |
| Ubuntu | flask-security | deb | 20.04 | 1.7.5-2ubuntu0.20.04.1 | Not reported | UBUNTU-CVE-2021-23385 | Not reported |
| Ubuntu | flask-security | deb | 22.04 | 4.0.0-1ubuntu0.1 | Not reported | UBUNTU-CVE-2021-23385 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-flask-security]Fixed
Source package: [flask-security]
Details (2)
5.1.2-1· all · bookwormFixed · Fixed:
5.0.2-1dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12
5.1.2-1· all · bookwormFixed · Fixed:
5.0.2-1dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12
- [python-flask-security-doc]Fixed
Source package: [flask-security]
Details (2)
5.1.2-1· all · bookwormFixed · Fixed:
5.0.2-1dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12
5.1.2-1· all · bookwormFixed · Fixed:
5.0.2-1dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12
[Debian 13 (Trixie)]
- [python3-flask-security]Fixed
Source package: [flask-security]
Details (2)
5.6.1-1· all · trixieFixed · Fixed:
5.0.2-1dsa · flask-security · debian · 13
5.6.1-1· all · trixieFixed · Fixed:
5.0.2-1dsa · flask-security · debian · 13
- [python-flask-security-doc]Fixed
Source package: [flask-security]
Details (2)
5.6.1-1· all · trixieFixed · Fixed:
5.0.2-1dsa · flask-security · debian · 13
5.6.1-1· all · trixieFixed · Fixed:
5.0.2-1dsa · flask-security · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_3834-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-23385]
- [https://osv.dev/vulnerability/DLA-3545-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:3834-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:3867-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-23385]
- [https://osv.dev/vulnerability/USN-6792-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-23385]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]