Security readout for executives and security teams
Plain-English summary
CVE-2021-23385 is an open redirect issue in Flask-Security. A user can be sent from a trusted application to an attacker-controlled site after login or logout. Business risk is mainly phishing, credential harvesting, and trust abuse, not direct server takeover.
Executive priority
Treat as a targeted web trust and phishing risk. Prioritize internet-facing applications with Flask-Security authentication flows, but rank below remote code execution or unauthenticated data exposure issues.
Technical view
Flask-Security redirect validation in get_post_logout_redirect and get_post_login_redirect can be bypassed with URLs containing multiple backslashes. The issue is exploitable only with a non-Werkzeug WSGI server or modified Werkzeug behavior using autocorrect_location_header=False. Sources state Flask-Security is no longer maintained.
Likely exposure
Exposure is limited to Python web applications using Flask-Security login or logout redirects, especially deployments not using default Werkzeug redirect handling. Debian-packaged Flask-Security users should verify distribution security updates.
Exploitation context
The source bundle does not show CISA KEV listing or active exploitation. Exploitation requires user interaction and a specific server/configuration condition, but the attack can support phishing by abusing trusted application URLs.
Researcher notes
Key uncertainty is deployment context. The CVE affects Flask-Security broadly, but practical exploitability depends on WSGI behavior or changed Werkzeug defaults. No upstream maintenance status suggests remediation may require distribution patches or replacement, not only a version bump.
Mitigation direction
- Inventory applications and packages for Flask-Security usage.
- Check whether login or logout post-redirect helpers are used.
- Apply relevant vendor or distribution security guidance, including Debian updates where applicable.
- Review Werkzeug and WSGI redirect handling configuration.
- Plan migration away from unmaintained Flask-Security where feasible.
Validation and detection
- Confirm whether Flask-Security is present in dependency manifests or runtime environments.
- Identify calls to get_post_login_redirect and get_post_logout_redirect.
- Review WSGI server choice and Werkzeug autocorrect_location_header settings.
- Test that login and logout redirects reject external destinations.
- Check Debian package status if using distribution-managed Flask-Security.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2021-23385 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 5.4 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C2.82.5Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
5.4MediumVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C
Source materials
- CVE List V5 sourceCVE List V5
- https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234CVE reference
- https://github.com/mattupstate/flask-securityCVE reference
- https://snyk.io/blog/url-confusion-vulnerabilities/CVE reference
- [debian-lts-announce] 20230828 [SECURITY] [DLA 3545-1] flask-security security updateCVE reference · mailing-list
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
