CVE-2025-47278pallets flask
Low 1.8
Follow: this CVE · pallets · pallets flask We alert you by email or Slack (account required).
- Priority
- 11
- CVSS 4.0
- 1.8
- EPSS
- —
- Auth required
- Yes
- Published
- May 13, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-683
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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
What happens
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.
What to do
- Apply the vendor's security update for flask.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | flask |
≥ 3.1.0 < 3.1.1 |
3.1.1 |
pip install "flask>=3.1.1" |
| PyPI | flask |
≥ 3.1.0 < 3.1.1 |
3.1.1 |
pip install "flask>=3.1.1" |
Per OSV / GitHub Advisories (GHSA-4grg-w6v8-c28g, PYSEC-2026-1377). Check the version in your lockfile before upgrading.
Affected products
- pallets · flask
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.