CVE-2022-51020
published medium CVSS 4.0 · 6.0Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mher | — | flower0 to < 2.2.0 (affected · semver) · 2.2.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.9 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mher | flower | 0 to < 2.2.0 (affected · semver)2.2.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-352 Cross-Site Request Forgery (CSRF)
References
6- https://github.com/mher/flower
- Vulnerable code in flower/api/control.py https://github.com/mher/flower/blob/v2.1.0/flower/api/control.py#L25-L27
- Patch Commit https://github.com/mher/flower/commit/3b2115af7f9c42bd2da2fbcbd919f77013e9ec51
- Patch Commit https://github.com/mher/flower/commit/a14408b16cc3d2877d36659005ce0d72b6162629
- GitHub Issue #1217 https://github.com/mher/flower/issues/1217
- VulnCheck Advisory: Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints https://www.vulncheck.com/advisories/flower-before-2.2.0-csrf-via-worker-and-task-control-api-endpoints
Provider assertions
2VulnCheck · cna
Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a15d369448492aaf77f2e8afa3d33cedb6630e1e6974324ca6d496ad09efef6b
- Ingested
- 15 Oct 2026, 14:30:37 UTC
- Source record
- Official CVE record