CVE-2015-7337: Remote Code Execution in IPython/Jupyter Notebook
Summary
CVE-2015-7337: The editor in IPython Notebook before 3.2.2 and Jupyter Notebook 4.0.x before 4.0.5 allows remote attackers to execute arbitrary JavaScript code via a crafted file, which triggers a redirect to files/, related to MIME ty... Affects notebook across 2 version ranges.
>= 4.0.0, < 4.0.5
< 9e63dd89b603dfbe3a7e774d8a962ee0fa30c0b5
Fixed in 9e63dd89b603dfbe3a7e774d8a962ee0fa30c0b5. How to fix ↓
Also tracked for
- ipython · PyPI
The same CVE-2015-7337 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
IPython Notebook is an interactive computational environment for creating and sharing documents containing live code, equations, visualizations, and narrative text. Jupyter Notebook is the successor to IPython Notebook and provides similar functionality. These tools are widely used in data science and scientific computing workflows. However, versions before IPython Notebook 3.2.2 and Jupyter Notebook 4.0.x before 4.0.5 are vulnerable to remote code execution.
Vulnerability Detail
The vulnerability (CVE-2015-7337) allows remote attackers to execute arbitrary JavaScript code by exploiting a flaw in the editor component of IPython Notebook and Jupyter Notebook. An attacker can accomplish this by crafting a malicious file that triggers a redirect to the 'files/' directory. This vulnerability is related to MIME types and can have severe consequences, including unauthorized code execution and potential compromise of sensitive data.
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
9e63dd89b603dfbe3a7e774d8a962ee0fa30c0b5
This is the first release that contains the fix.
pip install --upgrade "notebook==9e63dd89b603dfbe3a7e774d8a962ee0fa30c0b5"
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. It is crucial to update to the patched versions of IPython Notebook or Jupyter Notebook as soon as possible to eliminate the risk of remote code execution.
Conclusion
The vulnerability (CVE-2015-7337) in IPython Notebook and Jupyter Notebook allows remote code execution, posing a significant risk to systems and data. To mitigate this vulnerability, it is essential to update to the latest secure versions of these packages. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for notebook →
FAQ
IPython Notebook is an interactive computational environment for creating and sharing documents containing live code, equations, visualizations, and narrative text. It is widely used in data science and scientific computing workflows.
Jupyter Notebook is the successor to IPython Notebook and provides similar functionality. It is a popular tool in the data science community.
The vulnerability arises from a flaw in the editor component of IPython Notebook and Jupyter Notebook. By exploiting this flaw, an attacker can execute arbitrary JavaScript code remotely.
The consequences of this vulnerability can be severe. It allows unauthorized code execution, which can lead to the compromise of sensitive data and unauthorized access to systems.
To protect your system, it is crucial to update IPython Notebook to version 3.2.2 or later, or Jupyter Notebook to version 4.0.5 or later. These updated versions contain the necessary patches to mitigate the remote code execution vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for notebook.