CVE-2021-23401Flask-user Project Flask-user
Medium 6.1 No auth needed
Follow: this CVE · Flask-user Project · Flask-user Project Flask-user We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 67
- Auth required
- No
- Published
- Jul 5, 2021
- 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-User. When using the make_safe_url function, 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 or \\\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.
What to do
- Apply the vendor's security update for Flask-user.
- 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-user |
≤ 1.0.2.2 |
no fixed version | — |
| PyPI | flask-user |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-4298-89hc-6rfv, PYSEC-2021-337). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| flask-user_project | flask-user | all |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Third Party Advisory
- github.com Exploit Third Party Advisory
- snyk.io Third Party Advisory