CVE-2021-28125: Superset Open Redirect Vulnerability
MODERATECVE-2021-28125 is a MODERATE (CVSS 6.1) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Superset libraries in the PyPI ecosystem. The issue involves open redirect in apache superset. Remediation is available by upgrading affected packages to version 1.1.0.
CVE-2021-28125 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2021-28125
To remediate this vulnerability, upgrade all affected 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 superset>=Latest secure release
pip install apache-superset>=1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show superset
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-28125, inspect your installed packages using pip:
pip show superset
Analyze the terminal output to locate any version of Superset in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The pip show superset command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In 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-28125 Affected Superset Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
superset
|
PyPI |
≤ 0.34.0
|
|
|
apache-superset
|
PyPI |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2021-28125?
Which Superset versions are affected?
What version fixes CVE-2021-28125?
Is superset affected?
Is apache-superset affected?
What is the CVSS score of CVE-2021-28125?
What CWE is associated with CVE-2021-28125?
How can I check PyPI dependencies for CVE-2021-28125?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pfwg-rxf4-97c3",
"modified" : "2022-06-01T22:01:45Z",
"published" : "2021-10-06T17:47:53Z",
"aliases" : [ "CVE-2021-28125" ],
"summary" : "Open Redirect in Apache Superset",
"details" : "Apache Superset prior to 1.1.0 allowed for the creation of an external URL that could be malicious. By not checking user input for open redirects the URL shortener functionality would allow for a malicious user to create a short URL for a dashboard that could convince the user to click the link.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "superset"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.34.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "apache-superset"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-28125"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/superset/commit/eb35b804acf4d84cb70d02743e04b8afebbee029"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-pfwg-rxf4-97c3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/superset"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-superset/PYSEC-2021-128.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r89b5d0dd35c1adc9624b48d6247729c73b2641b32754226661368434%40%3Cdev.superset.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r89b5d0dd35c1adc9624b48d6247729c73b2641b32754226661368434@%3Cdev.superset.apache.org%3E"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/04/27/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-06T14:11:38Z",
"nvd_published_at" : "2021-04-27T10:15:00Z"
}
}