CVE-2020-26215: Notebook Open Redirect Vulnerability
LOWCVE-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
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).
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.
pip install notebook>=6.1.5
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
CVE-2020-26215 Affected Notebook Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
notebook
|
PyPI |
< 6.1.5
|
6.1.5
|
References
Frequently Asked Questions
What is CVE-2020-26215?
Which Notebook versions are affected?
What version fixes CVE-2020-26215?
Is notebook affected?
What is the CVSS score of CVE-2020-26215?
What CWE is associated with CVE-2020-26215?
How can I check PyPI dependencies for CVE-2020-26215?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}