CVE-2023-40170
JSON

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 packageVersionsReported by
jupyter-server jupyter_server< 2.7.2CVE List
jupyter-server (PyPI)before 2.7.2, before 87a4927272819f0b1cae1afa4c8c86ee2da002fdGitHub Advisory Database, PyPA Advisory Database
jupyter jupyter_serverbefore 2.7.2NVD

All scores

GitHub_M4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
GitHub4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory Database6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79CWE-284CWE-306

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-64x5-55rw-9974advisory, vendor-advisory, web
https://github.com/jupyter-server/jupyter_server/commit/87a4927272819f0b1cae1afa4c8c86ee2da002fdfix, patch, web
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/
https://nvd.nist.gov/vuln/detail/CVE-2023-40170advisory
https://github.com/jupyter-server/jupyter_serverpackage
https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2023-157.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NRP7DNZYVOIA4ZB3U3ZWKTFZEPYWNGCQweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XDKQAWQN6SQTOVACZNXYKEHWQXGG4DOFweb

Sources

SourceRecordLicence
CVE ListCVE-2023-40170 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-64x5-55rw-9974 changed 2026-09-10CC-BY-4.0
NVDCVE-2023-40170 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2023-157 changed 2023-11-08CC-BY-4.0