{"id":"CVE-2022-51020","state":"PUBLISHED","title":"Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints","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.","publishedAt":"2026-10-12T20:55:06.611Z","updatedAt":"2026-10-15T13:49:48.409Z","severity":{"score":6,"label":"Medium","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["mher flower"],"affected":[{"vendor":"mher","product":"flower","packageURL":"pkg:pypi/flower","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.2.0","versionType":"semver"},{"version":"2.2.0","status":"unaffected","versionType":"semver"}],"repo":"https://github.com/mher/flower"}],"references":["https://github.com/mher/flower/issues/1217","https://github.com/mher/flower/commit/a14408b16cc3d2877d36659005ce0d72b6162629","https://github.com/mher/flower/commit/3b2115af7f9c42bd2da2fbcbd919f77013e9ec51","https://github.com/mher/flower/blob/v2.1.0/flower/api/control.py#L25-L27","https://github.com/mher/flower","https://www.vulncheck.com/advisories/flower-before-2.2.0-csrf-via-worker-and-task-control-api-endpoints"],"weaknesses":["CWE-352"],"ingestedAt":"2026-10-29T20:05:36.141Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/51xxx/CVE-2022-51020.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-51020","state":"PUBLISHED","datePublished":"2026-10-12T20:55:06.611Z","dateUpdated":"2026-10-15T13:49:48.409Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-12T19:27:45.482Z"},"containers":{"cna":{"title":"Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"mher","product":"flower","packageURL":"pkg:pypi/flower","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.2.0","versionType":"semver"},{"version":"2.2.0","status":"unaffected","versionType":"semver"}],"repo":"https://github.com/mher/flower"}],"references":[{"url":"https://github.com/mher/flower/issues/1217","tags":["issue-tracking"],"name":"GitHub Issue #1217"},{"url":"https://github.com/mher/flower/commit/a14408b16cc3d2877d36659005ce0d72b6162629","tags":["patch"],"name":"Patch Commit"},{"url":"https://github.com/mher/flower/commit/3b2115af7f9c42bd2da2fbcbd919f77013e9ec51","tags":["patch"],"name":"Patch Commit"},{"url":"https://github.com/mher/flower/blob/v2.1.0/flower/api/control.py#L25-L27","tags":["technical-description"],"name":"Vulnerable code in flower/api/control.py"},{"url":"https://github.com/mher/flower","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/flower-before-2.2.0-csrf-via-worker-and-task-control-api-endpoints","name":"VulnCheck Advisory: Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-352","lang":"en","description":"Cross-Site Request Forgery (CSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-12T20:55:06.611Z"},"datePublic":"2022-05-26T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:flower_project:flower:*:*:*:*:*:*:*:*","versionEndExcluding":"2.2.0"}]}]}],"credits":[{"lang":"en","value":"Fawwaz Musaffa","type":"finder"},{"lang":"en","value":"tprynn","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-15T13:49:35.993557Z","id":"CVE-2022-51020","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T13:49:48.409Z"}}]}}}