Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-21241

7.4 · HIGH
Published Jan 11, 2021 flask-security-too_project CWE-352 EPSS 0.92% (58th pctl)

Overview

CVE-2021-21241 is a high-severity vulnerability affecting flask-security-too_project flask-security-too. It was published on January 11, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

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.

Remediation

Check the references section for vendor advisories and patches from flask-security-too_project. Update flask-security-too to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
flask-security-too_project flask-security-too >= 3.3.0, < 3.4.5 Affected

Frequently Asked Questions

What is CVE-2021-21241?

CVE-2021-21241 is a high-severity vulnerability affecting flask-security-too_project flask-security-too. It was published on January 11, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

How severe is CVE-2021-21241?

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-21241?

Check the references section for vendor advisories and patches from flask-security-too_project. Update flask-security-too to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-21241?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-21241 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.