# CVE-2026-35397: Jupyter Server path traversal in REST API

Source: https://junglewise.ai/threats/cve-2026-35397-jupyter-server-path-traversal-in-rest-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-05. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2026-35397 · Severity: high · CVSS 8.8 · Published 2026-05-05

Jupyter Server, the core engine for Jupyter web applications, contains a security flaw that allows users to access files they should not be able to see. An authenticated user can bypass directory restrictions to read, modify, or delete files in other users' folders if those folders share a similar name. This is particularly dangerous in shared environments where many users have predictable folder names, potentially leading to data theft or loss.

Technologies: [Jupyter Server](https://junglewise.ai/threats/technologies/jupyter-server), [jupyter-server (PyPI)](https://junglewise.ai/threats/technologies/pypi-jupyter-server). Vendors: [Jupyter](https://junglewise.ai/threats/vendors/jupyter), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-35397 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-35397 being exploited in the wild.

**How severe is CVE-2026-35397?** High severity, with a CVSS score of 8.8, published 5 May 2026.

**Which products and versions are affected?** jupyter-server (PyPI) ECOSYSTEM:introduced=0,fixed=2.18.0.

**Is there a fix for CVE-2026-35397?** Yes. jupyter-server (PyPI): upgrade to 2.18.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-35397 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-35397?** Check whether you run Jupyter Server or jupyter-server (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- jupyter-server (PyPI): upgrade to 2.18.0 or later

  ```sh
  pip install "jupyter-server>=2.18.0"
  ```


## Technical details

A path traversal vulnerability exists in the Jupyter Server REST API (/api/contents endpoint) due to improper validation of encoded path components. Authenticated attackers can escape the configured 'root_dir' to access sibling directories that share the same naming prefix (e.g., a user with access to 'user1' could access 'user10'). The exploit involves sending a crafted POST request to the checkpoints sub-endpoint using '%2e%2e/' sequences. This allows for full unauthorized file system operations (read/write/delete) within the scope of the prefixed sibling directories. The issue is fixed in version 2.18.0.

## Affected products

- Jupyter Jupyter Server <= 2.17.0
- Red Hat Migration Toolkit for Applications 8 8
- Red Hat Red Hat OpenShift AI (RHOAI)

## Identifiers

- CVE-2026-35397
- GHSA-5789-5fc7-67v3
- PYSEC-2026-68

## Timeline

- 2026-05-05: disclosed
- 2026-05-05: advisory
- 2026-05-05: patched: Fixed in version 2.18.0

## References

- [https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-5789-5fc7-67v3](https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-5789-5fc7-67v3)
- [https://access.redhat.com/security/cve/CVE-2026-35397](https://access.redhat.com/security/cve/CVE-2026-35397)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2466858](https://bugzilla.redhat.com/show_bug.cgi?id=2466858)
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-35397.json](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-35397.json)

## Related threats

- [Jupyter Server authorization bypass in kernel gateway handlers](https://junglewise.ai/threats/cve-2026-114135-jupyter-server-is-the-backend-for-jupyter-web-applications-from)
- [Jupyter Server token leakage in 5xx error logs](https://junglewise.ai/threats/cve-2026-86049-jupyter-server-token-leakage-in-5xx-error-logs)
- [Jupyter Server stored XSS in nbconvert handlers](https://junglewise.ai/threats/cve-2026-44727-jupyter-server-stored-xss-in-nbconvert-handlers)
- [Jupyter Jupyter Server CORS bypass via improper origin validation](https://junglewise.ai/threats/cve-2026-6657-jupyter-jupyter-server-cors-bypass-via-improper-origin-validation)
- [Jupyter jupyter-server path traversal in _get_os_path](https://junglewise.ai/threats/cve-2026-5422-jupyter-jupyter-server-path-traversal-in-get-os-path)
