Vulnerability · Published Aug 28, 2023 · Assigned by GitHub_M
CVE-2023-40170cross-site inclusion (XSSI) of files in jupyter-server
Medium 4.6
In plain English
A medium-severity improper access control in jupyter_server from jupyter-server. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
jupyter-server is the backend for Jupyter web applications. Improper cross-site credential checks on `/files/` URLs could allow exposure of certain file contents, or accessing files when opening untrusted files via "Open image in new tab". This issue has been addressed in commit `87a49272728` which has been included in release `2.7.2`. Users are advised to upgrade. Users unable to upgrade may use the lower performance `--ContentsManager.files_handler_class=jupyter_server.files.handlers.FilesHandler`, which implements the correct checks.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | jupyter-server | 2.7.3-r0 | ALPINE-CVE-2023-40170 |
| Alpine:v3.21 | jupyter-server | 2.7.3-r0 | ALPINE-CVE-2023-40170 |
| Alpine:v3.22 | jupyter-server | 2.7.3-r0 | ALPINE-CVE-2023-40170 |
| Alpine:v3.23 | jupyter-server | 2.7.3-r0 | ALPINE-CVE-2023-40170 |
| Alpine:v3.24 | jupyter-server | 2.7.3-r0 | ALPINE-CVE-2023-40170 |
| Debian:12 | jupyter-server | no fix listed | DEBIAN-CVE-2023-40170 |
| Debian:13 | jupyter-server | 2.14.2-1 | DEBIAN-CVE-2023-40170 |
| Debian:14 | jupyter-server | 2.14.2-1 | DEBIAN-CVE-2023-40170 |
| PyPI | jupyter-server | 2.7.2 | PYSEC-2023-157 |
| PyPI | jupyter-server | 2.7.2 | GHSA-64x5-55rw-9974 |
| Ubuntu:22.04:LTS | jupyter-server | no fix listed | UBUNTU-CVE-2023-40170 |
| Ubuntu:24.04:LTS | jupyter-server | no fix listed | UBUNTU-CVE-2023-40170 |
| Ubuntu:25.10 | jupyter-server | no fix listed | UBUNTU-CVE-2023-40170 |
| Ubuntu:26.04:LTS | jupyter-server | no fix listed | UBUNTU-CVE-2023-40170 |
| Ubuntu:26.10 | jupyter-server | no fix listed | UBUNTU-CVE-2023-40170 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| jupyter-server | jupyter_server | < 2.7.2 |
Weakness: CWE-284, CWE-306 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-64x5-55rw-9974 x_refsource_CONFIRM
- https://github.com/jupyter-server/jupyter_server/commit/87a4927272819f0b1cae1afa4c8c86ee2da002fd x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XDKQAWQN6SQTOVACZNXYKEHWQXGG4DOF/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NRP7DNZYVOIA4ZB3U3ZWKTFZEPYWNGCQ/