Live threats

All CVEs / Flask-security-too Project

CVE-2021-21241Flask-security-too Project Flask-security-too

High 7.4 No auth needed

Priority
59
CVSS 3.1
7.4
EPSS
0.9%
probability of exploitation in 30 days · percentile 62
Auth required
No
Published
Jan 11, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-352
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Flask-security-too.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI flask-security-too ≥ 3.3.0 < 3.4.5 3.4.5 pip install "flask-security-too>=3.4.5"
PyPI flask-security-too ≥ 3.3.0 < 3.4.5 3.4.5 pip install "flask-security-too>=3.4.5"

Per OSV / GitHub Advisories (GHSA-hh7m-rx4f-4vpv, PYSEC-2021-91). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
flask-security-too_projectflask-security-too≥ 3.3.0 < 3.4.5

Official sources

References

Links published by the sources. Open them with care.