CVE-2020-26215: Notebook Open Redirect Vulnerability

LOW
Advisory Identifier: GHSA-c7vm-f5p4-8fqh
CVSS 4.4
CWE-601
Published
Advisory Summary

CVE-2020-26215 is a LOW (CVSS 4.4) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Notebook libraries in the PyPI ecosystem. The issue involves open redirect in jupyter notebook. Remediation is available by upgrading affected packages to version 6.1.5.

CVE-2020-26215 at a Glance

CVE Identifier CVE-2020-26215
GHSA Identifier GHSA-c7vm-f5p4-8fqh
Severity LOW
CVSS v3.1 Base Score 4.4
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Notebook
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2020-26215

To remediate this vulnerability, upgrade all affected Notebook dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

notebook fixed: 6.1.5
pip install notebook>=6.1.5
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 notebook

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2020-26215, inspect your installed packages using pip:

pip show notebook

Analyze the terminal output to locate any version of Notebook in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.5), your application is affected.

Note: The pip show notebook 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 Notebook, 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

### Impact _What kind of vulnerability is it? Who is impacted?_ Open redirect vulnerability - a maliciously crafted link to a notebook server could redirect the browser to a different website. All notebook servers are technically affected, however, these maliciously crafted links can only be reasonably made for known notebook server hosts. A link to your notebook server may *appear* safe, but ultimately redirect to a spoofed server on the public internet. ### Patches _Has the problem been patched? What versions should users upgrade to?_ Patched in notebook 6.1.5 ### References [OWASP page on open redirects](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) ### For more information If you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list [security@ipython.org](mailto:security@ipython.org). Credit: zhuonan li of Alibaba Application Security Team

CVE-2020-26215 Affected Notebook Versions

1 component(s)
Fixed Versions:
6.1.5
Product / Package Ecosystem Affected Versions Fixed Version
notebook
PyPI
< 6.1.5
6.1.5

References

Frequently Asked Questions

What is CVE-2020-26215?
CVE-2020-26215 is a security vulnerability in Notebook involving Open redirect in Jupyter Notebook under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Notebook versions are affected?
Affected versions include releases prior to 6.1.5 across affected packages: notebook.
What version fixes CVE-2020-26215?
Upgrading to 6.1.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is notebook affected?
Yes, notebook is affected in releases prior to 6.1.5. Upgrade your dependency to 6.1.5 or later.
What is the CVSS score of CVE-2020-26215?
CVE-2020-26215 has a CVSS v3.1 base score of 4.4 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L.
What CWE is associated with CVE-2020-26215?
CVE-2020-26215 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-2020-26215?
Run the dependency tree command: 'pip show notebook'. 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-c7vm-f5p4-8fqh",
  "modified" : "2024-09-25T17:58:43Z",
  "published" : "2020-11-18T21:06:36Z",
  "aliases" : [ "CVE-2020-26215" ],
  "summary" : "Open redirect in Jupyter Notebook",
  "details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nOpen redirect vulnerability - a maliciously crafted link to a notebook server could redirect the browser to a different website.\n\nAll notebook servers are technically affected, however, these maliciously crafted links can only be reasonably made for known notebook server hosts. A link to your notebook server may *appear* safe, but ultimately redirect to a spoofed server on the public internet.\n\n### Patches\n\n_Has the problem been patched? What versions should users upgrade to?_\n\nPatched in notebook 6.1.5\n\n\n### References\n\n[OWASP page on open redirects](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n\n### For more information\n\nIf you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list [security@ipython.org](mailto:security@ipython.org).\n\nCredit: zhuonan li of Alibaba Application Security Team",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "notebook"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.1.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/notebook/security/advisories/GHSA-c7vm-f5p4-8fqh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26215"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/notebook/commit/3cec4bbe21756de9f0c4bccf18cf61d840314d74"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jupyter/notebook"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2020-215.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2020/12/msg00004.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-11-18T21:05:41Z",
    "nvd_published_at" : null
  }
}