CVE-2021-28125: Superset Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-pfwg-rxf4-97c3
CVSS 6.1
CWE-601
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-28125
GHSA Identifier GHSA-pfwg-rxf4-97c3
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Superset
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

superset fixed: Latest secure release
pip install superset>=Latest secure release
apache-superset fixed: 1.1.0
pip install apache-superset>=1.1.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2021-28125 Affected Superset Versions

2 component(s)
Fixed Versions:
1.1.0
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?
CVE-2021-28125 is a security vulnerability in Superset involving Open Redirect in Apache Superset under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Superset versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: superset, apache-superset.
What version fixes CVE-2021-28125?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is superset affected?
Yes, superset is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is apache-superset affected?
Yes, apache-superset is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of CVE-2021-28125?
CVE-2021-28125 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2021-28125?
CVE-2021-28125 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2021-28125?
Run the dependency tree command: 'pip show superset'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}