Cross-site Request Forgery (CSRF) Affecting flower package, versions [,2.2.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th 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-FLOWER-20875279
  • published13 Oct 2026
  • disclosed12 Oct 2026
  • creditFawwaz Musaffa, tprynn

Introduced: 12 Oct 2026

NewCVE-2022-51020  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade flower to version 2.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the absence of CSRF protection on state-changing endpoints when OAuth cookie-based authentication is in use. An attacker can trick an authenticated user into visiting a malicious page that issues forged requests to the Flower API, allowing unauthorized state-changing operations (e.g. task revocation or worker control) and potentially crashing workers.

Note: This is only exploitable when OAuth cookie-based authentication is enabled.

CVSS Base Scores

version 4.0
version 3.1