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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ipython | 2.4.1-1 | — |
| Debian 13 | ipython | 2.4.1-1 | — |
| Debian 12 | ipython | 2.4.1-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | ipython | < 3.2.2 | 3.2.2 | GHSA-4vwq-x64q-j4cj |
| PyPI | notebook | >= 4.0.0, < 4.0.5 | 4.0.5 | GHSA-4vwq-x64q-j4cj |
References
- openSUSE-SU-2015:1699 vendor-advisory
- https://github.com/ipython/ipython/commit/3ab41641cf6fce3860c73d5cf4645aa12e1e5892
- https://bugzilla.redhat.com/show_bug.cgi?id=1259405
- [oss-security] 20150902 CVE Request : CSRF in IPython/Jupyter notebook Tree. mailing-list
- [oss-security] 20150914 Re: CVE Request : CSRF in IPython/Jupyter notebook Tree. mailing-list
- https://github.com/jupyter/notebook/commit/dd9876381f0ef09873d8c5f6f2063269172331e3
- FEDORA-2015-16128 vendor-advisory
- https://github.com/jupyter/notebook/commit/35f32dd2da804d108a3a3585b69ec3295b2677ed
- FEDORA-2015-14901 vendor-advisory
- FEDORA-2015-14902 vendor-advisory