# CVE-2015-6938: Improper Neutralization of Input During Web Page Generation in Jupyter Notebook

Source: https://junglewise.ai/threats/cve-2015-6938-improper-neutralization-of-input-during-web-page-generation-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2015-09-21  
License: CC BY 4.0 with a link back

CVE-2015-6938 · Severity: low · CVSS 3.1 · Published 2015-09-21

Cross-site scripting (XSS) vulnerability in the file browser in notebook/notebookapp.py in IPython Notebook before 3.2.2 and Jupyter Notebook 4.0.x before 4.0.5 allows remote attackers to inject arbitrary web script or HTML via a folder name.  NOTE: this was originally reported as a cross-site request forgery (CSRF) vulnerability, but this may be inaccurate.

Technologies: [ipython (PyPI)](https://junglewise.ai/threats/technologies/ipython), [notebook (PyPI)](https://junglewise.ai/threats/technologies/pypi-notebook). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2015-6938 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2015-6938 being exploited in the wild.

**How severe is CVE-2015-6938?** Low severity, with a CVSS score of 3.1, published 21 September 2015.

**Which products and versions are affected?** ipython (PyPI) ECOSYSTEM:introduced=0,fixed=3.2.2, GIT:introduced=0,fixed=3ab41641cf6fce3860c73d5cf4645aa12e1e5892|ECOSYSTEM:introduced=0,fixed=3.2.2; notebook (PyPI) GIT:introduced=0,fixed=35f32dd2da804d108a3a3585b69ec3295b2677ed,fixed=dd9876381f0ef09873d8c5f6f2063269172331e3|ECOSYSTEM:introduced=4.0.0,fixed=4.0.5.

**Is there a fix for CVE-2015-6938?** Yes. ipython (PyPI): upgrade to 3.2.2 or later; notebook (PyPI): upgrade to 4.0.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2015-6938?** Check whether you run ipython (PyPI) or notebook (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ipython (PyPI): upgrade to 3.2.2 or later

  ```sh
  pip install "ipython>=3.2.2"
  ```

- notebook (PyPI): upgrade to 4.0.5 or later

  ```sh
  pip install "notebook>=4.0.5"
  ```


## Affected products

- ipython (PyPI) ECOSYSTEM:introduced=0,fixed=3.2.2, GIT:introduced=0,fixed=3ab41641cf6fce3860c73d5cf4645aa12e1e5892|ECOSYSTEM:introduced=0,fixed=3.2.2
- notebook (PyPI) GIT:introduced=0,fixed=35f32dd2da804d108a3a3585b69ec3295b2677ed,fixed=dd9876381f0ef09873d8c5f6f2063269172331e3|ECOSYSTEM:introduced=4.0.0,fixed=4.0.5

## Identifiers

- CVE-2015-6938
- GHSA-4vwq-x64q-j4cj
- PYSEC-2015-24
- PYSEC-2015-26

## Related threats

- [JupyterLab command link trust prompt marks wrong document](https://junglewise.ai/threats/cve-2026-102832-jupyterlab-command-link-trust-prompt-in-jupyterlab-can-trust-a)
- [JupyterLab HTML output sanitization bypass via clipboard paste](https://junglewise.ai/threats/cve-2026-102831-jupyterlab-is-an-extensible-environment-for-interactive-and)
- [PYSEC-2026-2536 - HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering](https://junglewise.ai/threats/cve-2024-43805-html-injection-in-jupyter-notebook-and-jupyterlab-leading-to-dom)
- [PYSEC-2026-2534 - JupyterLab vulnerable to potential authentication and CSRF tokens leak](https://junglewise.ai/threats/cve-2024-22421-jupyterlab-vulnerable-to-potential-authentication-and-csrf-tokens)
- [PYSEC-2026-2535 - JupyterLab vulnerable to SXSS in Markdown Preview](https://junglewise.ai/threats/cve-2024-22420-jupyterlab-vulnerable-to-sxss-in-markdown-preview)
