{"id":"CVE-2023-40170","aliases":["CVE-2023-40170","GHSA-64x5-55rw-9974","PYSEC-2023-157"],"related":[],"kind":"vulnerability","state":"published","title":"cross-site inclusion (XSSI) of files in jupyter-server","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nImproper 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\".\n\n### Patches\n\nJupyter Server 2.7.2\n\n### Workarounds\n\nUse lower performance `--ContentsManager.files_handler_class=jupyter_server.files.handlers.FilesHandler`, which implements the correct checks.\n\n### References\n\nUpstream patch for CVE-2019-9644 was not applied completely, leaving part of the vulnerability open.\n\nVulnerability reported by Tim Coen via the [bug bounty program](https://app.intigriti.com/programs/jupyter/jupyter/detail) [sponsored by the European Commission](https://commission.europa.eu/news/european-commissions-open-source-programme-office-starts-bug-bounties-2022-01-19_en) and hosted on the [Intigriti platform](https://www.intigriti.com/).","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2023-08-28T20:01:57.156Z","modified":"2026-09-10T03:49:57.417Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-284","CWE-306"],"affected":[{"ranges":[{"version":"< 2.7.2","status":"affected"}],"vendor":"jupyter-server","product":"jupyter_server","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.7.2"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.7.2"}],"vendor":"jupyter","product":"jupyter_server","cpe":"cpe:2.3:a:jupyter:jupyter_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"87a4927272819f0b1cae1afa4c8c86ee2da002fd"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.7.2"}],"ecosystem":"PyPI","package":"jupyter-server","purl":"pkg:pypi/jupyter-server","repo":"https://github.com/jupyter-server/jupyter_server","source":"pysec"}],"references":[{"url":"https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-64x5-55rw-9974","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jupyter-server/jupyter_server/commit/87a4927272819f0b1cae1afa4c8c86ee2da002fd","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XDKQAWQN6SQTOVACZNXYKEHWQXGG4DOF/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NRP7DNZYVOIA4ZB3U3ZWKTFZEPYWNGCQ/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40170","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jupyter-server/jupyter_server","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2023-157.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NRP7DNZYVOIA4ZB3U3ZWKTFZEPYWNGCQ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XDKQAWQN6SQTOVACZNXYKEHWQXGG4DOF","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-30T17:43:22.293Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40170","url":"https://www.cve.org/CVERecord?id=CVE-2023-40170","licence":"CVE Terms of Use","modified":"2025-02-13T17:03:25.640Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-64x5-55rw-9974","url":"https://github.com/advisories/GHSA-64x5-55rw-9974","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:57.417Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40170","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40170","licence":"Public domain","modified":"2026-06-17T06:16:31.720Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-157","url":"https://osv.dev/vulnerability/PYSEC-2023-157","licence":"CC-BY-4.0","modified":"2023-11-08T04:13:19.479Z"}],"updatedAt":"2026-11-25T22:58:27.398Z","epss":{"score":0.00728,"percentile":0.50175,"date":"2026-11-30T12:00:22.000Z"}}