cve.bz

CVE-2021-21241 flask-security-too project flask-security-too: Cross Site Reference Forgery

7.4 highEPSS 0.9%Fix available

High (7.4) in flask-security-too project flask-security-too. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in flask-security-too 3.4.5.

On this page
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.

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-352 Cross-Site Request Forgery (Cross Site Reference Forgery)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21241 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21241?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21241?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21241 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
flask-security-too_project:flask-security-toofrom 3.3.0 before 3.4.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hh7m-rx4f-4vpvPyPIflask-security-too>=3.3.0 <3.4.53.4.5
PYSEC-2021-91PyPIflask-security-too>=3.3.0 <3.4.53.4.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14flask-security4.0.0-1DEBIAN-CVE-2021-21241
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morepython-Flask-Security-Too3.4.2-150200.3.3.1SUSE-SU-2022:3093-1
openSUSELeap 15.3, Leap 15.4python-Flask-Security-Too3.4.2-150200.3.3.1SUSE-SU-2022:3093-1
openSUSETumbleweedpython-Flask-Security5.5.2-1.1openSUSE-SU-2024:14555-1

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-62 Cross Site Request Forgery Likelihood: High · Severity: Very High
  • CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) Likelihood: High · Severity: High
  • CAPEC-462 Cross-Domain Search Timing Severity: Medium
  • CAPEC-467 Cross Site Identification Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON