Description
Flask-Security-Too allows users to add security features to their Flask applicationa. Version 5.8.0's OAuth reauthentication flow can mark a session as fresh after verifying an OAuth account that belongs to a different user. If an attacker can operate an already-authenticated but stale victim session, they can complete OAuth verification using their own OAuth identity. The victim session is then treated as recently reauthenticated, allowing freshness-protected account actions to proceed. Version 5.8.1 contains a fix for this issue.
Published: 2026-07-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is in Flask‑Security‑Too's OAuth reauthentication flow, in version 5.8.0. An attacker who already controls a victim’s stale, authenticated session can trigger reauthentication and bind an OAuth identity that belongs to another user. The workflow then marks the session as fresh, allowing actions that require a recent authentication to proceed. This allows the attacker to perform privileged operations on the victim’s account, compromising sensitive data or escalating privileges. The weakness is a broken authentication flow (CWE‑287).

Affected Systems

Versions of Flask‑Security‑Too up to and including 5.8.0 are affected. A patch was introduced in 5.8.1 to prevent cross‑user OAuth identity acceptance during reauthentication.

Risk and Exploitability

With a CVSS score of 5.3 the issue is of moderate severity. EPSS score is <1%, indicating a very low yet nonzero exploitation probability and the vulnerability is not listed in CISA KEV, indicating no known public exploitation yet. Exploitation requires the attacker to control a victim’s stale session and to trigger a reauthentication flow with a different OAuth account. While the likelihood of widespread attack is moderate, the impact on affected accounts can be significant if an attacker succeeds.

Generated by OpenCVE AI on July 30, 2026 at 18:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Flask‑Security‑Too to version 5.8.1 or later to apply the fix.
  • Modify session management to invalidate stale sessions after any reauthentication flow, ensuring only the correct user can be marked as fresh.
  • Prevent or validate cross‑user OAuth account binding by enforcing that the OAuth identity matches the current authenticated user before allowing the session to be refreshed.

Generated by OpenCVE AI on July 30, 2026 at 18:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-97r5-pg8x-p63p Flask-Security-Too OAuth reauthentication freshness bypass via cross- user OAuth identity acceptance
History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Pallets-eco
Pallets-eco flask-security-too
Vendors & Products Pallets-eco
Pallets-eco flask-security-too

Mon, 20 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 18:00:00 +0000

Type Values Removed Values Added
Description Flask-Security-Too allows users to add security features to their Flask applicationa. Version 5.8.0's OAuth reauthentication flow can mark a session as fresh after verifying an OAuth account that belongs to a different user. If an attacker can operate an already-authenticated but stale victim session, they can complete OAuth verification using their own OAuth identity. The victim session is then treated as recently reauthenticated, allowing freshness-protected account actions to proceed. Version 5.8.1 contains a fix for this issue.
Title Flask-Security-Too OAuth reauthentication freshness bypass via cross- user OAuth identity acceptance
Weaknesses CWE-287
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Pallets-eco Flask-security-too
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T18:43:54.970Z

Reserved: 2026-05-15T23:26:58.309Z

Link: CVE-2026-46715

cve-icon Vulnrichment

Updated: 2026-07-20T18:43:26.443Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:00:09Z

Weaknesses