cve.bz

CVE-2026-35397 jupyter jupyter server: Path traversal

7.6 highExploit referenceEPSS 0.6%Fix available

High (7.6) in jupyter jupyter server. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in jupyter-server 2.18.0.

On this page
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.

Severity

CVSS 4.0

7.6 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-05-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-35397 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-35397?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-35397?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-35397 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jupyter:jupyter_serverbefore 2.18.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5789-5fc7-67v3PyPIjupyter-server<2.18.02.18.0
PYSEC-2026-68PyPIjupyter-server<2.18.02.18.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13jupyter-serverno fix listedDEBIAN-CVE-2026-35397
Debian14jupyter-server2.20.0-1DEBIAN-CVE-2026-35397
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morejupyter-serverno fix listedUBUNTU-CVE-2026-35397
openSUSETumbleweedpython-jupyter-server2.18.1-1.1openSUSE-SU-2026:10710-1
Alpinev3.24jupyter-server2.18.2-r0ALPINE-CVE-2026-35397

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in Jupyter Server enables an authenticated user to bypass their configured root directory via a path traversal vulnerability in the REST API. This allows access to, and manipulation of, files within sibling directories that share a common prefix. The risk is elevated in multi-tenant Red Hat OpenShift AI environments where predictable directory naming conventions are often employed.

Red Hat's mitigation

To mitigate this issue, ensure that directory names within Jupyter Server deployments do not share common prefixes with sibling directories. This operational control prevents authenticated users from exploiting the path traversal vulnerability to access unauthorized content. For example, avoid naming directories 'user1' and 'user10' if 'user' is a common prefix. This mitigation does not require service restarts or reloads.

ProductPackageStateAdvisory
Red Hat Migration Toolkit for Applications 8.2mta/mta-solution-server-rhel9:1784109883Fixed 2026-07-21RHSA-2026:43038
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1790331087Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1790260954Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1790072130Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1790072109Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1789651387Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1789651389Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1789651385Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1790077488Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1789983680Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.3rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1790260954Fixed 2026-09-30RHSA-2026:73987
Red Hat OpenShift AI 3.4rhoai/odh-th06-cpu-torch210-py312-rhel9:1787076778Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1787074331Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1787073913Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1787074078Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1787073929Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch291-py312-rhel9Not affected
5 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-35397.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON