Skip to content

Conversation

@descope
Copy link
Contributor

@descope descope bot commented May 13, 2025

This PR contains the following updates:

Package Update Change OpenSSF
Flask (changelog) patch ==3.1.0 -> ==3.1.1 OpenSSF Scorecard

GitHub Vulnerability Alerts

CVE-2025-47278

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 are 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.


Release Notes

pallets/flask (Flask)

v3.1.1

Compare Source

Released 2025-05-13

  • Fix signing key selection order when key rotation is enabled via
    SECRET_KEY_FALLBACKS. :ghsa:4grg-w6v8-c28g
  • Fix type hint for cli_runner.invoke. :issue:5645
  • flask --help loads the app and plugins first to make sure all commands
    are shown. :issue:5673
  • Mark sans-io base class as being able to handle views that return
    AsyncIterable. This is not accurate for Flask, but makes typing easier
    for Quart. :pr:5659

Configuration

📅 Schedule: Branch creation - "" in timezone Asia/Jerusalem, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@descope descope bot added the security label May 13, 2025
@descope descope bot enabled auto-merge (squash) May 13, 2025 21:48
@github-actions
Copy link

Coverage report

The coverage rate went from 97.91% to 97.91% ⬇️

None of the new lines are part of the tested code. Therefore, there is no coverage data about them.

@descope descope bot merged commit 5ecb8b4 into main May 13, 2025
20 checks passed
@descope descope bot deleted the renovate/pypi-flask-vulnerability branch May 13, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant