CVE-2025-47278
LOW 1.8CVSS 4.0Flask uses fallback key instead of current signing key
Flask is a web server gateway interface (WSGI) web application framework. In Flask 3.1.0, the way fallback key configuration was handled resulted in the last fallback key being used for signing, rather than the current signing key. Signing is provided by the itsdangerous library. A list of keys can be passed, and it expects the last (top) key in the list to be the most recent key, and uses that for signing. Flask was incorrectly constructing that list in reverse, passing the signing key first. Sites that have opted-in to use key rotation by setting SECRET_KEY_FALLBACKS care likely to unexpectedly be signing their sessions with stale keys, and their transition to fresher keys will be impeded. Sessions are still signed, so this would not cause any sort of data integrity loss. Version 3.1.1 contains a patch for the issue.
- Published
- 13 May 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-683
- Also known as
- GHSA-4grg-w6v8-c28gPYSEC-2026-1377
- Sources
- NVDJSONOSV GHSA-4grg-w6v8-c28gJSONOSV PYSEC-2026-1377JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 1.8 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | flask | >= 3.1.0, < 3.1.1 | 3.1.1 |
References
- https://github.com/pallets/flask/commit/73d6504063bfa00666a92b07a28aaf906c532f09 · WEB, FIX
- https://github.com/pallets/flask/releases/tag/3.1.1 · WEB
- https://github.com/pallets/flask/security/advisories/GHSA-4grg-w6v8-c28g · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-47278 · ADVISORY
- https://github.com/pallets/flask · PACKAGE
- https://pypi.org/project/flask · PACKAGE
- https://github.com/advisories/GHSA-4grg-w6v8-c28g · ADVISORY
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 13 May 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2025)