# CVE-2023-40170: cross-site inclusion (XSSI) of files in jupyter-server

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 50% of CVEs (2026-11-30)
- Published: 2023-08-28T20:01:57.156Z
- Modified: 2026-09-10T03:49:57.417Z
- Also known as: GHSA-64x5-55rw-9974, PYSEC-2023-157
- Weaknesses: CWE-79, CWE-284, CWE-306
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jupyter-server jupyter_server: < 2.7.2
- jupyter-server (PyPI): before 2.7.2; before 87a4927272819f0b1cae1afa4c8c86ee2da002fd
- jupyter jupyter_server: before 2.7.2

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-64x5-55rw-9974> (advisory, vendor-advisory, web)
- <https://github.com/jupyter-server/jupyter_server/commit/87a4927272819f0b1cae1afa4c8c86ee2da002fd> (fix, 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-40170> (advisory)
- <https://github.com/jupyter-server/jupyter_server> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2023-157.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NRP7DNZYVOIA4ZB3U3ZWKTFZEPYWNGCQ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XDKQAWQN6SQTOVACZNXYKEHWQXGG4DOF> (web)

## Sources

- CVE List: [CVE-2023-40170](https://www.cve.org/CVERecord?id=CVE-2023-40170), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-64x5-55rw-9974](https://github.com/advisories/GHSA-64x5-55rw-9974), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-40170](https://nvd.nist.gov/vuln/detail/CVE-2023-40170), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-157](https://osv.dev/vulnerability/PYSEC-2023-157), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-40170 · Whole record: https://cve.day/CVE-2023-40170.json · Rebuilt by cve.day 2026-11-25T22:58:27.398Z
