CVE catalog

CVE-2021-21241

flask-security: CVE-2021-21241

[CVE catalog]

Severity
High · CVSS 7.4CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.93% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianflask-securitysid5.9.1-1fixed
Debianflask-securityforky5.9.1-1fixed
Debianflask-securitytrixie5.6.1-1fixed
Debianflask-securitybookworm5.1.2-1fixed
Opensusepython-Flask-Securitytumbleweed5.5.2-1.1fixed
Susepython-Flask-Security-Toolinux enterprise module for basesystem 15 sp33.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toolinux enterprise module for basesystem 15 sp43.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toolinux enterprise high performance computing 15 sp2-espos3.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toolinux enterprise high performance computing 15 sp2-ltss3.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toolinux enterprise server 15 sp2-bcl3.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toolinux enterprise server 15 sp2-ltss3.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toolinux enterprise server for sap applications 15 sp23.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toomanager proxy 4.13.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toomanager retail branch server 4.13.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Toomanager server 4.13.4.2-150200.3.3.1fixed
Susepython-Flask-Security-Tooenterprise storage 73.4.2-150200.3.3.1fixed
Opensusepython-Flask-Security-Tooleap 15.33.4.2-150200.3.3.1fixed
Opensusepython-Flask-Security-Tooleap 15.43.4.2-150200.3.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianflask-securitysourcesid4.0.0-1not yet assignedNot reported[980189]
Debianflask-securitysourceforky4.0.0-1not yet assignedNot reported[980189]
Debianflask-securitysourcetrixie4.0.0-1not yet assignedNot reported[980189]
Debianflask-securitysourcebookworm4.0.0-1not yet assignedNot reported[980189]
Opensusepython-Flask-Securityrpmtumbleweed5.5.2-1.1Not reportedOPENSUSE-SU-2024:14555-1Not reported
Susepython-Flask-Security-Toorpmlinux enterprise module for basesystem 15 sp33.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmlinux enterprise module for basesystem 15 sp43.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmlinux enterprise high performance computing 15 sp2-espos3.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmlinux enterprise high performance computing 15 sp2-ltss3.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmlinux enterprise server 15 sp2-bcl3.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmlinux enterprise server 15 sp2-ltss3.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmlinux enterprise server for sap applications 15 sp23.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmmanager proxy 4.13.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmmanager retail branch server 4.13.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmmanager server 4.13.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Susepython-Flask-Security-Toorpmenterprise storage 73.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Opensusepython-Flask-Security-Toorpmleap 15.33.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported
Opensusepython-Flask-Security-Toorpmleap 15.43.4.2-150200.3.3.1Not reportedSUSE-SU-2022:3093-1Not reported

[Debian bug #980189]

OpenFactory catalog packages

[openSUSE Tumbleweed]

[Debian 12 (Bookworm)]

  • Source package: [flask-security]

    Details (2)
    • 5.1.2-1 · all · bookworm

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12

    • 5.1.2-1 · all · bookworm

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12

  • Source package: [flask-security]

    Details (2)
    • 5.1.2-1 · all · bookworm

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12

    • 5.1.2-1 · all · bookworm

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · bookworm; dsa · flask-security · debian · 12

[Debian 13 (Trixie)]

  • Source package: [flask-security]

    Details (2)
    • 5.6.1-1 · all · trixie

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · 13

    • 5.6.1-1 · all · trixie

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · 13

  • Source package: [flask-security]

    Details (2)
    • 5.6.1-1 · all · trixie

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · 13

    • 5.6.1-1 · all · trixie

      Fixed · Fixed: 4.0.0-1

      dsa · flask-security · debian · 13

Observed:

References