{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21241","published":"2021-01-11T21:15:13.377000Z","last_modified":"2026-06-17T03:35:06.603000Z","status":"Modified","cvss":{"version":"3.1","score":7.4,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-352"],"cpes":[{"criteria":"cpe:2.3:a:flask-security-too_project:flask-security-too:*:*:*:*:*:*:*:*","part":"a","vendor":"flask-security-too_project","product":"flask-security-too","version_start_including":"3.3.0","version_end_excluding":"3.4.5"}],"cpes_truncated":false,"vendors":["flask-security-too_project"],"products":["flask-security-too_project/flask-security-too"],"epss":{"score":0.00928,"percentile":0.61555,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-hh7m-rx4f-4vpv","ecosystem":"PyPI","name":"flask-security-too","purl":"pkg:pypi/flask-security-too","ranges":[{"introduced":"3.3.0","fixed":"3.4.5"}],"versions":["3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4"],"versions_truncated":false},{"advisory":"PYSEC-2021-91","ecosystem":"PyPI","name":"flask-security-too","purl":"pkg:pypi/flask-security-too","ranges":[{"introduced":"3.3.0","fixed":"3.4.5"}],"versions":["3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4"],"versions_truncated":false}],"severity":"high","priority_score":59,"links":{"html_es":"/es/cve/CVE-2021-21241/","html_en":"/en/cve/CVE-2021-21241/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21241","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21241"},"untrusted":{"vendor_name":"Flask-security-too Project","product_name":"Flask-security-too","desc_en":"The 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.","affected":[{"untrusted_vendor":"Flask-Middleware","untrusted_product":"flask-security-too","versions":[]}],"references":[{"url":"https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b800896c4f2199005e84b1f","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257c37b75babe9c28e83542a","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/Flask-Middleware/flask-security/pull/422","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5","tags":["Third Party Advisory"]},{"url":"https://github.com/Flask-Middleware/flask-security/security/advisories/GHSA-hh7m-rx4f-4vpv","tags":["Third Party Advisory"]},{"url":"https://pypi.org/project/Flask-Security-Too","tags":["Product","Third Party Advisory"]}]}}