CVE-2019-10255: Notebook Open Redirect Vulnerability Vulnerability
MODERATECVE-2019-10255 is a MODERATE (CVSS 6.1) open redirect vulnerability vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Notebook libraries in the PyPI ecosystem. The issue involves open redirect vulnerability in jupyterhub and notebook. Remediation is available by upgrading affected packages to version 5.7.8, 0.9.6.
CVE-2019-10255 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.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2019-10255
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>=5.7.8
pip install jupyterhub>=0.9.6
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-2019-10255, 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 5.7.8), 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-2019-10255 Affected Notebook Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
notebook
|
PyPI |
< 5.7.8
|
5.7.8
|
|
jupyterhub
|
PyPI |
< 0.9.6
|
0.9.6
|
References
Frequently Asked Questions
What is CVE-2019-10255?
Which Notebook versions are affected?
What version fixes CVE-2019-10255?
Is notebook affected?
Is jupyterhub affected?
What is the CVSS score of CVE-2019-10255?
What CWE is associated with CVE-2019-10255?
How can I check PyPI dependencies for CVE-2019-10255?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rv62-4pmj-xw6h",
"modified" : "2023-09-05T12:34:54Z",
"published" : "2019-04-02T15:46:54Z",
"aliases" : [ "CVE-2019-10255" ],
"summary" : "Open Redirect vulnerability in jupyterhub and notebook",
"details" : "An Open Redirect vulnerability for all browsers in Jupyter Notebook before 5.7.8 and some browsers (Chrome, Firefox) in JupyterHub before 0.9.6 allows crafted links to the login page, which will redirect to a malicious site after successful login. Servers running on a base_url prefix are not affected.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "notebook"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.7.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "jupyterhub"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10255"
}, {
"type" : "WEB",
"url" : "https://github.com/jupyter/notebook/commit/08c4c898182edbe97aadef1815cce50448f975cb"
}, {
"type" : "WEB",
"url" : "https://github.com/jupyter/notebook/commit/70fe9f0ddb3023162ece21fbb77d5564306b913b"
}, {
"type" : "WEB",
"url" : "https://github.com/jupyter/notebook/commit/d65328d4841892b412aef9015165db1eb029a8ed"
}, {
"type" : "WEB",
"url" : "https://blog.jupyter.org/open-redirect-vulnerability-in-jupyter-jupyterhub-adf43583f1e4"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-rv62-4pmj-xw6h"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jupyter/notebook"
}, {
"type" : "WEB",
"url" : "https://github.com/jupyter/notebook/compare/05aa4b2...16cf97c"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UP5RLEES2JBBNSNLBR65XM6PCD4EMF7D"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VMDPJBVXOVO6LYGAT46VZNHH6JKSCURO"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:55:52Z",
"nvd_published_at" : null
}
}