Vulnerabilities in pkg:pypi/jupyter-notebook
PACKAGECVE-2019-9644 is a MODERATE (CVSS 5.4) improper neutralization of input during vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Jupyter notebook libraries in the PyPI ecosystem. The issue involves improper neutralization of input during web page generation in jupyter notebook. Remediation is available by upgrading affected packages to version 5.7.6.
pkg:pypi/jupyter-notebook
Vulnerability advisories affecting package pkg:pypi/jupyter-notebook. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hhx8-cr55-qcxx | CVE-2019-9644 | MODERATE | Improper Neutralization of Input During Web Page Generation in Jupyter Notebook |
CVE-2019-9644 at a Glance
Security Impact
CVSS: 5.4
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:U/C:L/I:L/A:N).
How to Fix CVE-2019-9644
To remediate this vulnerability, upgrade all affected Jupyter 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 jupyter-notebook>=5.7.6
pip install notebook>=5.7.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show jupyter-notebook
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-9644, inspect your installed packages using pip:
pip show jupyter-notebook
Analyze the terminal output to locate any version of Jupyter 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.6), your application is affected.
Note: The pip show jupyter-notebook command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Jupyter 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-9644 Affected Jupyter notebook Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jupyter-notebook
|
PyPI |
< 5.7.6
|
5.7.6
|
|
notebook
|
PyPI |
< 5.7.6
|
5.7.6
|
References
Frequently Asked Questions
What is CVE-2019-9644?
Which Jupyter notebook versions are affected?
What version fixes CVE-2019-9644?
Is jupyter-notebook affected?
Is notebook affected?
What is the CVSS score of CVE-2019-9644?
What CWE is associated with CVE-2019-9644?
How can I check PyPI dependencies for CVE-2019-9644?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hhx8-cr55-qcxx",
"modified" : "2024-09-26T16:12:16Z",
"published" : "2022-05-14T01:10:43Z",
"aliases" : [ "CVE-2019-9644" ],
"summary" : "Improper Neutralization of Input During Web Page Generation in Jupyter Notebook",
"details" : "An XSSI (cross-site inclusion) vulnerability in Jupyter Notebook before 5.7.6 allows inclusion of resources on malicious pages when visited by users who are authenticated with a Jupyter server. Access to the content of resources has been demonstrated with Internet Explorer through capturing of error messages, though not reproduced with other browsers. This occurs because Internet Explorer's error messages can include the content of any invalid JavaScript that was encountered.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "jupyter-notebook"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.7.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.7.5"
}
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "notebook"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.7.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-9644"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jupyter/notebook"
}, {
"type" : "WEB",
"url" : "https://github.com/jupyter/notebook/compare/f3f00df...05aa4b2"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2019-159.yaml"
}, {
"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-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-24T14:47:43Z",
"nvd_published_at" : "2019-03-12T09:29:00Z"
}
}