CVE-2021-32609: Apache superset Cross-Site Scripting Vulnerability
MODERATECVE-2021-32609 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Apache superset libraries in the PyPI ecosystem. The issue involves apache superset cross-site scripting (xss) vulnerability on the explore page. Remediation is available by upgrading affected packages to version 1.2.0.
CVE-2021-32609 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2021-32609
To remediate this vulnerability, upgrade all affected Apache superset 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 apache-superset>=1.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show apache-superset
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-32609, inspect your installed packages using pip:
pip show apache-superset
Analyze the terminal output to locate any version of Apache superset in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.
Note: The pip show apache-superset command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Apache superset, 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
CVE-2021-32609 Affected Apache superset Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
apache-superset
|
PyPI |
< 1.2.0
|
1.2.0
|
References
Frequently Asked Questions
What is CVE-2021-32609?
Which Apache superset versions are affected?
What version fixes CVE-2021-32609?
Is apache-superset affected?
What is the CVSS score of CVE-2021-32609?
What CWE is associated with CVE-2021-32609?
How can I check PyPI dependencies for CVE-2021-32609?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f8vc-f28w-x9c9",
"modified" : "2024-09-12T21:16:24Z",
"published" : "2022-05-24T19:17:47Z",
"aliases" : [ "CVE-2021-32609" ],
"summary" : "Apache Superset Cross-site Scripting (XSS) vulnerability on the Explore page",
"details" : "Apache Superset up to and including 1.1 does not sanitize titles correctly on the Explore page. This allows an attacker with Explore access to save a chart with a malicious title, injecting html (including scripts) into the page.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-superset"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32609"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-f8vc-f28w-x9c9"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/superset"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-superset/PYSEC-2021-377.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r2c09254e98b4f8b3deb422762bd0e2aa6d743b72d96c2f90cbaae31a%40%3Cdev.superset.apache.org%3E"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-21T20:13:13Z",
"nvd_published_at" : "2021-10-18T15:15:00Z"
}
}