Security readout for executives and security teams
Plain-English summary
CVE-2021-23401 is an open redirect issue in Flask-User. In affected deployments, a crafted URL can make an application send a user to an attacker-controlled site. Business impact is mainly phishing, credential capture, and trust abuse rather than direct server compromise.
Executive priority
Treat as moderate priority unless Flask-User is internet-facing in authentication flows. Prioritize validation where redirects affect login or account workflows, because the most credible harm is phishing through a trusted domain.
Technical view
Flask-User's make_safe_url validation can be bypassed using multiple leading slash or backslash characters. The source states exploitation depends on using a non-Werkzeug WSGI server, or changing Werkzeug's default autocorrect_location_header behavior to false. CVSS is 5.4 medium with required user interaction.
Likely exposure
Exposure is most likely in Python Flask applications using Flask-User redirect handling, especially login, logout, registration, or next-URL flows. Risk is narrower when Werkzeug defaults are unchanged.
Exploitation context
The bundle does not report active exploitation, and KEV status is false. An attacker would need to convince a user to follow a crafted application link that reaches vulnerable redirect logic in a susceptible WSGI configuration.
Researcher notes
Evidence is limited to public CVE, Snyk, and Flask-User repository references. No CWE is listed in the bundle. No patch version is provided here, so remediation should be tied to current vendor or package-maintainer guidance.
Mitigation direction
- Inventory Flask applications using Flask-User and redirect parameters.
- Check Flask-User and Snyk guidance for maintained fixes or migration advice.
- Keep Werkzeug default location header autocorrection unless vendor guidance says otherwise.
- Avoid non-Werkzeug WSGI behavior that permits unsafe redirect interpretation.
- Prefer strict relative-path or allowlisted redirect destinations in application logic.
Validation and detection
- Search code for Flask-User usage and make_safe_url-dependent redirect flows.
- Confirm the deployed WSGI server and Werkzeug autocorrect_location_header setting.
- Review login, logout, registration, and next-URL redirect handling.
- Test redirect validation safely in staging without external user traffic.
- Verify monitoring for suspicious redirects to untrusted domains.
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-23401 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://snyk.io/vuln/SNYK-PYTHON-FLASKUSER-1293188CVE reference · x_refsource_MISC
- https://github.com/lingthio/Flask-UserCVE reference · x_refsource_MISC
- https://github.com/lingthio/Flask-User/blob/master/flask_user/user_manager__utils.pyCVE reference · x_refsource_MISC
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.
