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

Medium 4.3 Published Updated

Remote attackers can inject arbitrary web script or HTML via folder names in the file browser, potentially leading to code execution or account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2015-6938?

CVE-2015-6938 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 21 Sep 2015. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2015-6938?

6 open source packages ship an affected version, including ipython and notebook. It affects 4 products.

PackageAffectedFixed in
ipython PyPIAll versions3.2.2
ipython PyPIAll versions3.2.2
ipython PyPIAll versions3.2.2
notebook PyPIFrom 4.0.04.0.5
notebook PyPIFrom 4.0.04.0.5
notebook PyPIFrom 4.0.04.0.5

Products include Fedoraproject Fedora, Ipython Notebook, Jupyter Notebook, Opensuse Opensuse.

How do I fix CVE-2015-6938?

Upgrade ipython to 3.2.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2015-6938 being exploited?

There is no known exploitation of CVE-2015-6938 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2015-6938, GHSA-4vwq-x64q-j4cj, MGASA-2015-0372, PYSEC-2015-24, PYSEC-2015-26.

Is CVE-2015-6938 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free