CVE-2015-7337: Improper Input Validation in Jupyter Notebook
Summary
CVE-2015-7337: Improper Input Validation in Jupyter Notebook. Affects notebook versions >= 4.0.0, < 4.0.5. Fixed in 4.0.5. 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
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 in data science and scientific computing. The vulnerability in Jupyter Notebook allows remote attackers to execute arbitrary JavaScript code by exploiting improper input validation in the editor. This vulnerability affects IPython Notebook versions before 3.2.2 and Jupyter Notebook versions 4.0.x before 4.0.5.
Vulnerability Detail
The vulnerability arises from a lack of proper input validation in the editor component of IPython Notebook and Jupyter Notebook. Attackers can exploit this vulnerability by crafting a malicious file that triggers a redirect to files/, which can then execute arbitrary JavaScript code. This can lead to various security risks, including unauthorized access to user data, privilege escalation, and remote code execution.
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
If upgrading to the latest version is not immediately feasible, a possible workaround is to disable the execution of JavaScript code in the notebook editor. This can be achieved by modifying the configuration settings of the notebook server to restrict the execution of JavaScript. However, this workaround may limit the functionality of the notebook editor.
Conclusion
The vulnerability in Jupyter Notebook allows remote attackers to execute arbitrary JavaScript code by exploiting improper input validation in the editor. To mitigate this risk, it is crucial to upgrade to the latest version of IPython Notebook or Jupyter Notebook. Regularly updating the software and following security best practices will help ensure the security of your Jupyter Notebook environment.
See every vulnerability recorded for notebook →
FAQ
Jupyter Notebook is an open-source web application used for creating and sharing documents that contain live code, equations, visualizations, and narrative text. It is widely used in data science and scientific computing.
Versions of IPython Notebook before 3.2.2 are affected by this vulnerability.
Jupyter Notebook versions 4.0.x before 4.0.5 are affected by this vulnerability.
This vulnerability can lead to unauthorized access to user data, privilege escalation, and remote code execution.
To protect your system, it is recommended to upgrade to the latest version of IPython Notebook or Jupyter Notebook. Regularly updating the software is also advisable.
References
Related vulnerabilities
Recent vulnerabilities recorded for notebook.