# CVE-2026-5422: Path Traversal in jupyter/jupyter

- Severity: Medium 6.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/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): 4.86%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-02T09:11:15.755Z
- Modified: 2026-07-31T20:30:22.001Z
- Also known as: GHSA-gf7q-q4j7-hp7c, PYSEC-2026-2532
- Weaknesses: CWE-23
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

A path traversal vulnerability exists in jupyter-server version 2.17.0 due to an incorrect root directory boundary check in the _get_os_path() function within jupyter_server/services/contents/fileio.py. The check uses startswith(root) without appending a trailing path separator, allowing sibling directories with names starting with the same prefix as root_dir to bypass the check. Additionally, the to_os_path() function in utils.py does not strip ".." from path parts, enabling traversal sequences to bypass the vulnerable check. This vulnerability can lead to unauthorized read/write access to files in sibling directories, potentially exposing sensitive data in shared hosting environments.

(As written by CVE List.)

## Affected

- jupyter jupyter/jupyter: from unspecified up to latest
- jupyter-server (PyPI): before 2.18.2
- jupyter jupyter_server: 2.17.0

## Every score

- @huntr_ai: CVSS:3.0 6.8 Medium `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.0 6.8 Medium `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.0 6.8 Medium `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://huntr.com/bounties/24a36953-6490-466f-8cb2-a90d1ca56e0f> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5422> (advisory)
- <https://github.com/advisories/GHSA-gf7q-q4j7-hp7c> (advisory)
- <https://github.com/jupyter-server/jupyter_server> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-2532.yaml> (web)
- <https://pypi.org/project/jupyter-server> (package, web)
- <http://github.com/jupyter-server/jupyter_server/commit/0d829f2c35a481c3b24ecbe1e25a6f79954e88f2> (web)

## Sources

- CVE List: [CVE-2026-5422](https://www.cve.org/CVERecord?id=CVE-2026-5422), CVE Terms of Use, modified 2026-06-02
- GitHub Advisory Database: [GHSA-gf7q-q4j7-hp7c](https://github.com/advisories/GHSA-gf7q-q4j7-hp7c), CC-BY-4.0, modified 2026-07-31
- NVD: [CVE-2026-5422](https://nvd.nist.gov/vuln/detail/CVE-2026-5422), Public domain, modified 2026-07-22
- PyPA Advisory Database: [PYSEC-2026-2532](https://osv.dev/vulnerability/PYSEC-2026-2532), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-5422 · Whole record: https://cve.day/CVE-2026-5422.json · Rebuilt by cve.day 2026-11-25T22:59:23.557Z
