CVE-2022-51020 Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints
Attackers can force authenticated users to shut down Celery workers or revoke tasks via CSRF in Flower monitoring tool.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-51020?
CVE-2022-51020 is a medium-severity vulnerability in mher flower, published on 12 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-352
Which versions are affected by CVE-2022-51020?
How do I fix CVE-2022-51020?
No fix has been published for CVE-2022-51020 yet. Limit exposure of the affected software until one is available.
Is CVE-2022-51020 being exploited?
There is no known exploitation of CVE-2022-51020 in the wild and no public exploit code.
Sources
Also known as GHSA-xg8m-6cg7-cmf8.