CVE-2022-51020

Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints

Published Oct 12, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
Description
Flower before 2.2.0 contains a cross-site request forgery vulnerability because Tornado xsrf_cookies is disabled and the OAuth session cookie lacks SameSite. Attackers can lure authenticated users to malicious pages that POST to /api/worker/shutdown, /api/worker/pool/restart, or /api/task/revoke to shut down Celery workers, resize pools, and revoke tasks.

Analysis

AI-generated

Technical impact

The vulnerability in Flower allows a cross‑site request forgery attack (CWE‑352) because its underlying Tornado framework has xsrf_cookies disabled and the OAuth session cookie does not enforce SameSite. An attacker can lure an authenticated user to a malicious page that posts to the control endpoints /api/worker/shutdown, /api/worker/pool/restart, or /api/task/revoke, which gives the attacker the ability to shut down Celery workers, resize worker pools, and revoke scheduled tasks. This can lead to interruption of background job processing and service unavailability for the affected system.

Affected Systems

The issue affects the Flower web interface for Celery, provided by mher:flower, in all versions prior to 2.2.0. Anyone using a version older than 2.2.0 is potentially vulnerable if the CSRF protection is not manually enabled.

Risk and Exploitability

With a CVSS score of 6, the vulnerability is classified as medium risk. No EPSS score is available, and the flaw is not listed in CISA’s KEV catalog. The attack requires that a victim user is logged into Flower and is directed to a malicious site that submits a POST request to one of the control endpoints. If successful, the attacker can cause denial of service by shutting down workers or disrupting task execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Flower to version 2.2.0 or later, which restores CSRF protection and sets SameSite for session cookies.
  • If an upgrade is not immediately possible, restrict access to the worker shutdown, pool restart, and task revoke endpoints by applying firewall rules or removing them from public exposure.
  • Configure the Tornado framework to enable xsrf_cookies and set the OAuth session cookie’s SameSite attribute to 'Lax' or 'Strict' to mitigate CSRF attempts.

Generated by OpenCVE AI on October 12, 2026 at 23:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mher
Mher flower
Vendors & Products Mher
Mher flower
Type Values Removed Values Added
Description Flower before 2.2.0 contains a cross-site request forgery vulnerability because Tornado xsrf_cookies is disabled and the OAuth session cookie lacks SameSite. Attackers can lure authenticated users to malicious pages that POST to /api/worker/shutdown, /api/worker/pool/restart, or /api/task/revoke to shut down Celery workers, resize pools, and revoke tasks.
Title Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints
First Time appeared Flower Project
Flower Project flower
Weaknesses CWE-352
CPEs cpe:2.3:a:flower_project:flower:*:*:*:*:*:*:*:*
Vendors & Products Flower Project
Flower Project flower
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 15, 2026, 1:49 PM
Reserved
Oct 12, 2026, 7:27 PM
Status
Deferred
Published
Oct 12, 2026, 9:17 PM
Modified
Nov 10, 2026, 12:10 PM