Function Call With Incorrect Order of Arguments Affecting flask package, versions [3.1.0,3.1.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FLASK-10123407
  • published14 May 2025
  • disclosed13 May 2025
  • creditBrax94

Introduced: 13 May 2025

NewCVE-2025-47278  (opens in a new tab)
CWE-683  (opens in a new tab)

How to fix?

Upgrade flask to version 3.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Function Call With Incorrect Order of Arguments due to the incorrect handling of the SECRET_KEY_FALLBACKS configuration. An attacker can exploit this to sign sessions with stale keys, potentially impeding the transition to fresher keys.

note: This is only exploitable if the site has opted-in to use key rotation by setting SECRET_KEY_FALLBACKS.

CVSS Base Scores

version 4.0
version 3.1