# CVE-2022-51020: Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints

- Severity: Medium 6.0 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-10-12T20:55:06.611Z
- Modified: 2026-11-10T12:10:00.177Z
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- mher flower: before 2.2.0 (not affected: 2.2.0)

## Every score

- VulnCheck: CVSS:4.0 6.0 Medium `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`
- VulnCheck: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H`

## References

- <https://github.com/mher/flower/issues/1217> (issue-tracking)
- <https://github.com/mher/flower/commit/a14408b16cc3d2877d36659005ce0d72b6162629> (patch)
- <https://github.com/mher/flower/commit/3b2115af7f9c42bd2da2fbcbd919f77013e9ec51> (patch)
- <https://github.com/mher/flower/blob/v2.1.0/flower/api/control.py#L25-L27> (technical-description)
- <https://github.com/mher/flower> (product)
- <https://www.vulncheck.com/advisories/flower-before-2.2.0-csrf-via-worker-and-task-control-api-endpoints> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-51020](https://www.cve.org/CVERecord?id=CVE-2022-51020), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-51020](https://nvd.nist.gov/vuln/detail/CVE-2022-51020), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-51020 · Whole record: https://cve.day/CVE-2022-51020.json · Rebuilt by cve.day 2026-11-25T22:58:21.457Z
