CVE-2015-7337 Improper Input Validation in Jupyter Notebook

Medium 6.8 Published Updated

Remote attackers can execute arbitrary JavaScript code in Jupyter Notebook via a crafted file, requiring user interaction to trigger the redirect.

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

What is CVE-2015-7337?

CVE-2015-7337 is a medium-severity cross-site scripting vulnerability in n/a, published on 29 Sep 2015. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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 types.

Weakness: CWE-20

Which versions are affected by CVE-2015-7337?

6 open source packages ship an affected version, including ipython and notebook. It affects 2 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 Ipython Notebook, Jupyter Notebook.

How do I fix CVE-2015-7337?

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-7337 being exploited?

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

Sources

Also known as GHSA-92mr-v722-f48m, PYSEC-2015-25, PYSEC-2015-27.

Is CVE-2015-7337 in your software?

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

Check your SBOMs for free