CVE-2025-47278
Flask vulnerability analysis and mitigation

Overview

Flask, a web server gateway interface (WSGI) web application framework, was found to have a vulnerability in version 3.1.0 (CVE-2025-47278) related to key configuration handling. The issue was discovered and disclosed on May 13, 2025, affecting the way fallback key configuration was managed in the framework (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 (top) key in the list for signing purposes. However, Flask was constructing this list in reverse order, placing the signing key first instead of last. This implementation error affects sites that have opted to use key rotation by setting SECRETKEYFALLBACKS (GitHub Advisory). 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).

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, it's important to note that sessions remain signed, preventing any 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

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