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.
Published: 2026-10-12
Score: 6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized control of Celery workers
Action: Patch immediately
AI Analysis

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.

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

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

History

Thu, 15 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 13 Oct 2026 07:45:00 +0000

Type Values Removed Values Added
First Time appeared Mher
Mher flower
Vendors & Products Mher
Mher flower

Mon, 12 Oct 2026 21:00:00 +0000

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'}


Subscriptions

Flower Project Flower
Mher Flower
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-15T13:49:48.409Z

Reserved: 2026-10-12T19:27:45.482Z

Link: CVE-2022-51020

cve-icon Vulnrichment

Updated: 2026-10-15T13:49:42.479Z

cve-icon NVD

Status : Deferred

Published: 2026-10-12T21:17:06.227

Modified: 2026-10-16T18:25:45.343

Link: CVE-2022-51020

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T07:25:26Z

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)