Vulnerability · Published May 5, 2026 · Assigned by GitHub_M

CVE-2026-35397jupyter-server path traversal allows access to sibling directories sharing root_dir name prefix

High 7.1

In plain English

A high-severity path traversal in jupyter_server from jupyter-server. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.6%top 50.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

Jupyter Server is the backend for Jupyter web applications. In versions 2.17.0 and earlier, a path traversal vulnerability in the REST API allows an authenticated user to escape the configured root_dir and access sibling directories whose names begin with the same prefix as the root_dir. For example, with a root_dir named "test", the API permits access to a sibling directory named "testtest" through a crafted request to the /api/contents endpoint using encoded path components. An attacker can read, write, and delete files in affected sibling directories. Multi-tenant deployments using predictable naming schemes are particularly at risk, as a user with a directory named "user1" could access directories for user10 through user19 and beyond. A user who can choose a single-character folder name could gain access to a significant number of sibling directories. Version 2.18.0 contains a fix. As a workaround, ensure folder names do not share a common prefix with any sibling directory.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24jupyter-server2.18.2-r0ALPINE-CVE-2026-35397
Debian:12jupyter-serverno fix listedDEBIAN-CVE-2026-35397
Debian:13jupyter-serverno fix listedDEBIAN-CVE-2026-35397
Debian:14jupyter-server2.20.0-1DEBIAN-CVE-2026-35397
PyPIjupyter-server2.18.0PYSEC-2026-68
PyPIjupyter-server2.18.0GHSA-5789-5fc7-67v3
Ubuntu:22.04:LTSjupyter-serverno fix listedUBUNTU-CVE-2026-35397
Ubuntu:24.04:LTSjupyter-serverno fix listedUBUNTU-CVE-2026-35397
Ubuntu:25.10jupyter-serverno fix listedUBUNTU-CVE-2026-35397
Ubuntu:26.04:LTSjupyter-serverno fix listedUBUNTU-CVE-2026-35397
Ubuntu:26.10jupyter-serverno fix listedUBUNTU-CVE-2026-35397

Affected products (as reported)

VendorProductVersions
jupyter-server jupyter_server < 2.18.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L

References