The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-47278

CVE-2025-47278: Flask Authentication Bypass Vulnerability

CVE-2025-47278 is an authentication bypass flaw in Flask 3.1.0 that causes sessions to be signed with stale fallback keys instead of current keys. This article covers the technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2025-47278 Overview

CVE-2025-47278 is a cryptographic vulnerability in Flask 3.1.0, the popular Python WSGI web application framework. The vulnerability affects how fallback key configuration is handled during session signing operations. Due to incorrect list construction order, Flask was passing the signing key first rather than last to the itsdangerous library, resulting in sessions being signed with stale fallback keys instead of the current signing key.

Critical Impact

Sites using key rotation via SECRET_KEY_FALLBACKS are unexpectedly signing sessions with stale keys, impeding secure key transition workflows.

Affected Products

  • Flask 3.1.0
  • Applications using SECRET_KEY_FALLBACKS for key rotation
  • Web applications relying on Flask session signing with itsdangerous

Discovery Timeline

  • 2025-05-13 - CVE-2025-47278 published to NVD
  • 2025-05-13 - Last updated in NVD database

Technical Details for CVE-2025-47278

Vulnerability Analysis

This vulnerability is classified under CWE-683 (Function Call With Incorrect Order of Arguments). The itsdangerous library, which Flask uses for cryptographic signing operations, expects a list of keys with the most recent (current) signing key positioned last in the list. However, Flask 3.1.0 was incorrectly constructing this list in reverse order, placing the signing key first instead of last.

When SECRET_KEY_FALLBACKS is configured for key rotation, the framework should use the current SECRET_KEY for signing new sessions while allowing older fallback keys to verify existing sessions during the rotation period. Due to the incorrect ordering, Flask was selecting the last fallback key (the oldest) for signing operations instead of the current key.

Root Cause

The root cause lies in how Flask constructed the key list for the itsdangerous signer. The library expects keys ordered from oldest to newest, with the signing key at the end of the list. Flask 3.1.0 passed this list in reverse order, causing itsdangerous to use the wrong key for signing operations. This is a classic function argument order error that affects the cryptographic key selection logic.

Attack Vector

This vulnerability has a local attack vector requiring high privileges to exploit. The issue primarily affects operational security rather than enabling direct attacks. An attacker would need to:

  1. Identify that the target application uses Flask 3.1.0 with key rotation enabled
  2. Understand that sessions are being signed with stale keys
  3. Potentially leverage knowledge of older, potentially compromised keys to forge session tokens if those keys were previously exposed

While sessions remain cryptographically signed (no data integrity loss occurs), the security posture is weakened because the expected key rotation benefits are not realized.

text
// Patch from CHANGES.rst showing the fix
 
Unreleased
 
+   Fix signing key selection order when key rotation is enabled via
+    ``SECRET_KEY_FALLBACKS``. :ghsa:`4grg-w6v8-c28g`
-   Fix type hint for `cli_runner.invoke`. :issue:`5645`
-   ``flask --help`` loads the app and plugins first to make sure all commands
     are shown. :issue:5673`

Source: GitHub Commit Details

The documentation was also updated to clarify the expected key ordering:

text
// Documentation patch in docs/config.rst
 
.. py:data:: SECRET_KEY_FALLBACKS
 
-    A list of old secret keys that can still be used for unsigning, most recent
-    first. This allows a project to implement key rotation without invalidating
-    active sessions or other recently-signed secrets.
+    A list of old secret keys that can still be used for unsigning. This allows
+    a project to implement key rotation without invalidating active sessions or
+    other recently-signed secrets.
 
    Keys should be removed after an appropriate period of time, as checking each
    additional key adds some overhead.
 
+    Order should not matter, but the default implementation will test the last
+    key in the list first, so it might make sense to order oldest to newest.
+
    Flask's built-in secure cookie session supports this. Extensions that use
    :data:`SECRET_KEY` may not support this yet.

Source: GitHub Commit Details

Detection Methods for CVE-2025-47278

Indicators of Compromise

  • Flask applications running version 3.1.0 with SECRET_KEY_FALLBACKS configured
  • Session cookies being signed with keys other than the current SECRET_KEY
  • Key rotation procedures not taking effect as expected
  • Older fallback keys remaining valid longer than intended

Detection Strategies

  • Audit Flask application configurations for SECRET_KEY_FALLBACKS usage
  • Review application dependencies and verify Flask version is not 3.1.0
  • Implement session token analysis to verify which key is being used for signing
  • Use dependency scanning tools to flag vulnerable Flask versions

Monitoring Recommendations

  • Monitor for Flask version 3.1.0 across your application inventory
  • Track session signing behavior during key rotation events
  • Set up alerts for applications using SECRET_KEY_FALLBACKS configuration
  • Review cryptographic key management procedures for affected applications

How to Mitigate CVE-2025-47278

Immediate Actions Required

  • Upgrade Flask to version 3.1.1 or later immediately
  • Review SECRET_KEY_FALLBACKS configuration in affected applications
  • Consider rotating secret keys again after upgrading to ensure proper key usage
  • Audit session management to verify correct signing key is in use post-upgrade

Patch Information

Flask version 3.1.1 contains the fix for this vulnerability. The patch corrects the key list construction order so that itsdangerous receives keys in the expected order with the current signing key positioned last. For detailed patch information, see the GitHub Security Advisory GHSA-4grg-w6v8-c28g and the Flask 3.1.1 Release.

Workarounds

  • If unable to upgrade immediately, temporarily disable key rotation by removing SECRET_KEY_FALLBACKS configuration
  • Ensure only the current SECRET_KEY is configured until upgrade is possible
  • Monitor session signing behavior manually to detect anomalies
  • Consider implementing application-level validation of session signing keys
bash
# Configuration example - Upgrade Flask to patched version
pip install --upgrade flask>=3.1.1

# Verify installed version
pip show flask | grep Version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechFlask

  • SeverityLOW

  • CVSS Score1.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-683
  • Technical References
  • GitHub Commit Details

  • GitHub Release 3.1.1

  • GitHub Security Advisory GHSA-4grg-w6v8-c28g
  • Related CVEs
  • CVE-2026-27205: Flask Information Disclosure Vulnerability

  • CVE-2023-30861: Flask Information Disclosure Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English