CVE-2021-21241

Summary

CVECVE-2021-21241
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-01-11 21:15:00 UTC
Updated2021-01-19 15:43:00 UTC
DescriptionThe Python "Flask-Security-Too" package is used for adding security features to your Flask application. It is an is a independently maintained version of Flask-Security based on the 3.0.0 version of Flask-Security. In Flask-Security-Too from version 3.3.0 and before version 3.4.5, the /login and /change endpoints can return the authenticated user's authentication token in response to a GET request. Since GET requests aren't protected with a CSRF token, this could lead to a malicious 3rd party site acquiring the authentication token. Version 3.4.5 and version 4.0.0 are patched. As a workaround, if you aren't using authentication tokens - you can set the SECURITY_TOKEN_MAX_AGE to "0" (seconds) which should make the token unusable.

Risk And Classification

Problem Types: CWE-352

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Flask-security-too Project Flask-security-too All All All All
Application Flask-security-too Project Flask-security-too All All All All

References

ReferenceSourceLinkTags
Fix security vuln - GET on /login or /change could reveal authenticat… · Flask-Middleware/flask-security@6d50ee9 · GitHub MISC github.com Patch, Third Party Advisory
Flask-Security-Too · PyPI MISC pypi.org Product, Third Party Advisory
Release Fix CSRF Vulnerability · Flask-Middleware/flask-security · GitHub MISC github.com Third Party Advisory
CSRF Vuln can expose users authentication token · Advisory · Flask-Middleware/flask-security · GitHub CONFIRM github.com Third Party Advisory
Fix security vuln - GET on /login or /change could reveal authenticat… by jwag956 · Pull Request #422 · Flask-Middleware/flask-security · GitHub MISC github.com Patch, Third Party Advisory
I421backport (#425) · Flask-Middleware/flask-security@61d3131 · GitHub MISC github.com Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179957 Debian Security Update for flask-security (CVE-2021-21241)
  • 752549 SUSE Enterprise Linux Security Update for python-Flask-Security-Too (SUSE-SU-2022:3093-1)
  • 983060 Python (pip) Security Update for Flask-Security-Too (GHSA-hh7m-rx4f-4vpv)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report