CVE-2015-6938: Cross-Site Scripting Vulnerability in Jupyter Notebook
Summary
CVE-2015-6938: Improper Neutralization of Input During Web Page Generation in Jupyter Notebook. Affects notebook versions >= 4.0.0, < 4.0.5. Fixed in 4.0.5. How to fix ↓
Also tracked for
The same CVE-2015-6938 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Jupyter Notebook is an open-source web application that allows users to create and share documents that contain live code, equations, visualizations, and narrative text. It is widely used for data analysis, scientific computing, and machine learning. The vulnerability affects versions before 3.2.2 of IPython Notebook and versions before 4.0.5 of Jupyter Notebook.
Vulnerability Detail
The vulnerability identified as CVE-2015-6938 is a cross-site scripting (XSS) vulnerability in the file browser of Jupyter Notebook. It allows remote attackers to inject arbitrary web script or HTML by exploiting a flaw in the handling of folder names. This can lead to the execution of malicious code in the context of the affected user's browser, potentially compromising their sensitive information or performing unauthorized actions. The vulnerability was initially reported as a cross-site request forgery (CSRF) vulnerability, but this classification may be inaccurate.
How To Fix
Latest published version: 7.6.3 as of 22 Oct 2026
pip install --upgrade "notebook==7.6.3"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
4.0.5
This is the first release that contains the fix.
pip install --upgrade "notebook==4.0.5"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring that they do not open or interact with suspicious or untrusted folder names within the Jupyter Notebook file browser.
Conclusion
The CVE-2015-6938 vulnerability in Jupyter Notebook exposes users to the risk of cross-site scripting attacks. To protect against this vulnerability, it is crucial to upgrade to the latest versions of IPython Notebook or Jupyter Notebook. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for notebook →
FAQ
Jupyter Notebook is an open-source web application used for creating and sharing documents containing live code, equations, visualizations, and narrative text. It is widely used in data analysis, scientific computing, and machine learning.
Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to the execution of arbitrary code in the context of the affected user's browser.
The vulnerability allows remote attackers to inject arbitrary web script or HTML into Jupyter Notebook, potentially compromising user data and performing unauthorized actions.
To fix this vulnerability, users should upgrade to the latest versions of IPython Notebook (version 3.2.2 or later) or Jupyter Notebook (version 4.0.5 or later).
While there is no specific workaround mentioned, users can mitigate the risk by avoiding interaction with suspicious or untrusted folder names within the Jupyter Notebook file browser.
References
Related vulnerabilities
Recent vulnerabilities recorded for notebook.