4.6medium
cross-site inclusion (XSSI) of files in jupyter-server
- Severity
- 4.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.73% (higher than 50% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-64x5-55rw-9974PYSEC-2023-157
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
| Product or package | Versions | Reported by |
|---|---|---|
| jupyter-server jupyter_server | < 2.7.2 | CVE List |
| jupyter-server (PyPI) | before 2.7.2, before 87a4927272819f0b1cae1afa4c8c86ee2da002fd | GitHub Advisory Database, PyPA Advisory Database |
| jupyter jupyter_server | before 2.7.2 | NVD |
All scores
| GitHub_M | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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".
Patches
Jupyter Server 2.7.2
Workarounds
Use lower performance --ContentsManager.files_handler_class=jupyter_server.files.handlers.FilesHandler, which implements the correct checks.
References
Upstream patch for CVE-2019-9644 was not applied completely, leaving part of the vulnerability open.
Vulnerability reported by Tim Coen via the bug bounty program sponsored by the European Commission and hosted on the Intigriti platform.
NVD (es)
jupyter-server es el backend de las aplicaciones web de Jupyter. Las comprobaciones de Improper Cross-Site Credential en las URL `/files/` podrían permitir la exposición de ciertos contenidos de archivos o el acceso a archivos al abrir archivos que no son de confianza a través de "Abrir imagen en una pestaña nueva". Este problema se solucionó en el commit "87a49272728" que se incluyó en la versión "2.7.2". Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar pueden usar `--ContentsManager.files_handler_class=jupyter_server.files.handlers.FilesHandler` de menor rendimiento, que implementa las comprobaciones correctas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-40170 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-64x5-55rw-9974 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-40170 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-157 changed 2023-11-08 | CC-BY-4.0 |