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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-08-28 · Modified: 2025-02-13
- Aliases: GHSA-64x5-55rw-9974, PYSEC-2023-157, UBUNTU-CVE-2023-40170, DEBIAN-CVE-2023-40170, CGA-6rm6-w7hg-rmqr, ALPINE-CVE-2023-40170
- Record: https://cvemate.com/vulnerability/CVE-2023-40170 · JSON: https://cvemate.com/vulnerability/CVE-2023-40170/json

## Description

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

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.623%, percentile 51.343%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine jupyter-server (Alpine Linux): \< 2.7.3-r0
- chainguard kubeflow-pipelines-visualization-server (Chainguard): \< 2.4.0-r0
- wolfi kubeflow-pipelines-visualization-server (Wolfi): \< 2.4.0-r0
- debian jupyter-server (Debian): All versions (No fix recorded) \| \< 2.14.2-1
- ubuntu jupyter-server (Ubuntu): All versions (No fix recorded)
- jupyter-server jupyter\_server: \< 2.7.2
- jupyter jupyter\_server: \< 2.7.2
- PyPI jupyter-server (PyPI): \< 87a4927272819f0b1cae1afa4c8c86ee2da002fd \| \< 2.7.2

## References

- <https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-64x5-55rw-9974>
- <https://github.com/jupyter-server/jupyter_server/commit/87a4927272819f0b1cae1afa4c8c86ee2da002fd>
- <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>
- <https://github.com/jupyter-server/jupyter_server>
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2023-157.yaml>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NRP7DNZYVOIA4ZB3U3ZWKTFZEPYWNGCQ>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XDKQAWQN6SQTOVACZNXYKEHWQXGG4DOF>
- <https://ubuntu.com/security/CVE-2023-40170>
- <https://www.cve.org/CVERecord?id=CVE-2023-40170>
- <https://security-tracker.debian.org/tracker/CVE-2023-40170>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40170.json>
- <https://security.alpinelinux.org/vuln/CVE-2023-40170>

---

Data as of 2026-12-05T11:27:50.060Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
