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

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), notebook (PyPI). 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
    pip install "ipython>=3.2.2"
  • notebook (PyPI): upgrade to 4.0.5 or later
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.