GHSA-94ww-22rx-493x: Flower Cross-Site Scripting Vulnerability
MODERATEGHSA-94ww-22rx-493x is a MODERATE cross-site scripting vulnerability (General Security Weakness) affecting Flower libraries in the PyPI ecosystem. The issue involves cross-site scripting. Remediation is available by upgrading affected packages to version 0.9.2.
GHSA-94ww-22rx-493x at a Glance
How to Fix GHSA-94ww-22rx-493x
To remediate this vulnerability, upgrade all affected Flower dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install flower>=0.9.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show flower
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-94ww-22rx-493x, inspect your installed packages using pip:
pip show flower
Analyze the terminal output to locate any version of Flower in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.2), your application is affected.
Note: The pip show flower command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Flower, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-94ww-22rx-493x Affected Flower Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
flower
|
PyPI |
< 0.9.2
|
0.9.2
|
References
Frequently Asked Questions
What is GHSA-94ww-22rx-493x?
Which Flower versions are affected?
What version fixes GHSA-94ww-22rx-493x?
Is flower affected?
What CWE is associated with GHSA-94ww-22rx-493x?
How can I check PyPI dependencies for GHSA-94ww-22rx-493x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-94ww-22rx-493x",
"modified" : "2021-02-24T19:46:35Z",
"published" : "2021-02-24T19:46:35Z",
"withdrawn" : "2021-02-24T19:46:35Z",
"aliases" : [ ],
"summary" : "Cross-Site Scripting",
"details" : "Flower, before 0.9.2, has a XSS on tasks page because data is not properly escaped.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "flower"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mher/flower/issues/650"
}, {
"type" : "WEB",
"url" : "https://github.com/mher/flower/commit/0f2eab324f65823340a0146f7a2b44804e4725ee"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-05T13:52:45Z",
"nvd_published_at" : null
}
}