CVE-2025-47278

Flask uses fallback key instead of current signing key

LOW
1.8
CVSS Score
Published: May 13, 2025 at 03:57 PM UTC
Updated: June 17, 2026 at 09:27 AM UTC
1 product affected across 1 vendorFlask

Using flask by pallets?

Get instant alerts when new vulnerabilities affect flask - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
LOW1.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

1.8LOWGitHub_M
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-683

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card