# CVE-2025-47278: Flask uses fallback key instead of current signing key

- Severity: Low 1.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-05-13T15:57:40.409Z
- Modified: 2026-09-10T03:50:24.238Z
- Also known as: GHSA-4grg-w6v8-c28g, PYSEC-2026-1377
- Weaknesses: CWE-683
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pallets flask: = 3.1.0
- flask (PyPI): from 3.1.0 before 3.1.1

## Every score

- GitHub_M: CVSS:4.0 1.8 Low `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`
- GitHub: CVSS:4.0 Low `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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/pallets/flask/security/advisories/GHSA-4grg-w6v8-c28g> (web)
- <https://github.com/pallets/flask/commit/73d6504063bfa00666a92b07a28aaf906c532f09> (fix, web)
- <https://github.com/pallets/flask/releases/tag/3.1.1> (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)

## Sources

- CVE List: [CVE-2025-47278](https://www.cve.org/CVERecord?id=CVE-2025-47278), CVE Terms of Use, modified 2025-05-13
- GitHub Advisory Database: [GHSA-4grg-w6v8-c28g](https://github.com/advisories/GHSA-4grg-w6v8-c28g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-47278](https://nvd.nist.gov/vuln/detail/CVE-2025-47278), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1377](https://osv.dev/vulnerability/PYSEC-2026-1377), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-47278 · Whole record: https://cve.day/CVE-2025-47278.json · Rebuilt by cve.day 2026-11-25T22:58:57.976Z
