cve.bz

CVE-2021-23385 flask-security project flask-security: Open Redirect

6.1 mediumExploit referenceEPSS 1.2%Fix available

Medium (6.1) in flask-security project flask-security. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in flask-security 5.5.1.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23385 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23385?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23385?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23385 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cg8c-gc2j-2wf7PyPIflask-security<=3.0.0no fix published
PYSEC-2026-809PyPIflask-security<5.5.15.5.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10flask-security1.7.5-2+deb10u1DLA-3545-1
Debian12, 13, 14flask-security5.0.2-1DEBIAN-CVE-2021-23385
Ubuntu20.04:LTSflask-security1.7.5-2ubuntu0.20.04.1UBUNTU-CVE-2021-23385 USN-6792-1
Ubuntu22.04:LTSflask-security4.0.0-1ubuntu0.1UBUNTU-CVE-2021-23385 USN-6792-1
UbuntuPro:18.04:LTSflask-security1.7.5-2ubuntu0.18.04.1~esm1UBUNTU-CVE-2021-23385 USN-6792-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Basesystem 15 SP4python-Flask-Security-Too3.4.2-150200.3.6.1SUSE-SU-2022:3867-1
openSUSELeap 15.3, Leap 15.4python-Flask-Security3.0.0-150100.4.3.1SUSE-SU-2022:3834-1
openSUSELeap 15.3, Leap 15.4python-Flask-Security-Too3.4.2-150200.3.6.1SUSE-SU-2022:3867-1
openSUSETumbleweedpython-Flask-Security5.5.2-1.1openSUSE-SU-2024:14555-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON