{"id":"CVE-2022-51020","revision":"cac4f2c92e2a496594938d642b68714d","records":[{"revision":"cac4f2c92e2a496594938d642b68714d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2022-51020","aliases":[],"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.","state":0,"publishedAt":"2026-10-12T20:55:06.611+00:00","modifiedAt":"2026-10-15T13:49:48.409+00:00","affected":[{"ecosystem":"Vendor product","name":"flower","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"mher\",\n                    \"product\": \"flower\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"2.2.0\"\n                        },\n                        {\n                            \"version\": \"2.2.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:pypi/flower\",\n                    \"repo\": \"https://github.com/mher/flower\"\n                }"}],"metrics":[{"system":"CVSS 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","score":6,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H","score":5.9,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-51020","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-51020","identifiers":["CVE-2022-51020"]},"retained":false,"historicalAffected":[]}],"coverage":[]}