CVE-2015-6938: XSS

Published Sep 2, 2015
·
Updated

A flaw was found in IPython's notebook handling:

Local folder name was used in HTML templates without escaping, allowing XSS in said pages by carefully crafting folder name and URL to access it.

Original report:

http://seclists.org/oss-sec/2015/q3/474

Upstream Patches:

3.x: https://github.com/ipython/ipython/commit/3ab41641cf6fce3860c73d5cf4645aa12e1e5892 4.0.x: https://github.com/jupyter/notebook/commit/dd9876381f0ef09873d8c5f6f2063269172331e3 4.x: https://github.com/jupyter/notebook/commit/35f32dd2da804d108a3a3585b69ec3295b2677ed

Other sources

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.

— MITRE

Affected Software

20 affected componentsFixes available
redhat/ipython<4.0.5
4.0.5
redhat/ipython<4.1
4.1
redhat/ipython<3.2.2
3.2.2
pip/ipython<=3.2.1
3.2.2
pip/notebook>=4.0.0<=4.0.4
4.0.5
jupyter notebook=4.0.0
jupyter notebook=4.0.1
jupyter notebook=4.0.2
jupyter notebook=4.0.3
jupyter notebook=4.0.4
Fedoraproject Fedora=21
Fedoraproject Fedora=22
Fedoraproject Fedora=23
openSUSE openSUSE=13.1
openSUSE openSUSE=13.2
IPython Notebook<=3.2.1
debian/ipython<2.4.1-1
2.4.1-1
debian/ipython<2.4.1-1
2.4.1-1
debian/ipython<2.4.1-1
2.4.1-1
debian/ipython
2.4.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ipython to a version that resolves this vulnerability.

    Fixed in 4.0.5
  2. Upgrade

    Upgrade redhat/ipython to a version that resolves this vulnerability.

    Fixed in 4.1
  3. Upgrade

    Upgrade redhat/ipython to a version that resolves this vulnerability.

    Fixed in 3.2.2
  4. Upgrade

    Upgrade pip/ipython to a version that resolves this vulnerability.

    Fixed in 3.2.2
  5. Upgrade

    Upgrade pip/notebook to a version that resolves this vulnerability.

    Fixed in 4.0.5
  6. Upgrade

    Upgrade debian/ipython to a version that resolves this vulnerability.

    Fixed in 2.4.1-1
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.2.2
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.0.5

Event History

Sep 2, 2015
Data Sourced
02:15 PM
DescriptionSeverityAffected Software
Sep 21, 2015
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
07:59 PM
RemedyWeakness
Data Sourced
via NVD·07:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:59 PM
DescriptionAffected Software
Sep 29, 2019
Data Sourced
via Red Hat·01:36 PM
DescriptionSeverityAffected Software
May 14, 2022
Advisory Published
via GitHub·02:04 AM
Data Sourced
via GitHub·02:04 AM
DescriptionSeverityWeaknessAffected Software
Sep 23, 2024
Advisory Published
via GitHub·04:44 PM
Event
via GitHub·04:44 PM

Frequently Asked Questions

1

What is the severity of CVE-2015-6938?

CVE-2015-6938 has a medium severity level due to its potential for Cross-Site Scripting (XSS) attacks.

2

How do I fix CVE-2015-6938?

To fix CVE-2015-6938, upgrade IPython to version 4.0.5 or later, or ensure that the notebook software is updated to version 4.0.5.

3

What systems are affected by CVE-2015-6938?

CVE-2015-6938 affects IPython versions up to 4.0.4 and Jupyter Notebook versions up to 4.0.4.

4

What kind of attack does CVE-2015-6938 enable?

CVE-2015-6938 enables Cross-Site Scripting (XSS) attacks by allowing unescaped local folder names in HTML templates.

5

Who reported CVE-2015-6938?

CVE-2015-6938 was reported by security researchers concerned with vulnerabilities in IPython's notebook handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203