CVE-2025-47278
Flask vulnerability analysis and mitigation

Overview

Flask version 3.1.0 contains a vulnerability (CVE-2025-47278) related to session key rotation handling, discovered and disclosed on May 13, 2025. The vulnerability affects the web server gateway interface (WSGI) web application framework's handling of fallback key configuration, specifically impacting sites that have opted to use key rotation via SECRETKEYFALLBACKS (Wiz Report, GitHub Advisory).

Technical details

The vulnerability stems from incorrect handling of signing key order in Flask 3.1.0. The framework uses the itsdangerous library for signing, which expects the most recent key to be the last key in the list for signing purposes. However, Flask was constructing this list in reverse order, placing the signing key first instead of last. The vulnerability has been assigned a CVSS v4.0 base score of 1.8 (Low) with the vector string 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 (NVD, GitHub Advisory).

Impact

The primary impact of this vulnerability is that affected sites are likely to unexpectedly sign their sessions with stale keys, impeding their transition to fresher keys. However, sessions remain signed, so this would not cause any sort of data integrity loss (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Flask version 3.1.1. Users are advised to upgrade to this version to resolve the issue (Flask Release).

Additional resources


SourceThis report was generated using AI

Related Flask vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-30861HIGH7.5
  • PodmanPodman
  • podman-gvproxy
NoYesMay 02, 2023
CVE-2019-1010083HIGH7.5
  • FlaskFlask
  • flask
NoYesJul 17, 2019
CVE-2018-1000656HIGH7.5
  • FlaskFlask
  • flask
NoYesAug 20, 2018
CVE-2025-47278LOW1.8
  • FlaskFlask
  • flask
NoYesMay 13, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management