Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Jupyter Server
-
DeliveryIdentify sibling directory with overlapping prefix
-
ExploitCraft URL-encoded traversal request to /api/contents/%2e%2e/[target_dir]/[file]
-
ExecutionBypass startswith() validation
-
ImpactRead/write/delete files in sibling directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access to a Jupyter Server instance (PR:L) with valid token or session. Critically requires deployment with sibling directories sharing name prefixes with the attacker's root_dir - specifically multi-tenant environments using predictable naming like sequential user IDs (user1, user2...user10) or scenarios where attackers can choose single-character usernames to maximize overlap. Attack complexity is high (AC:H) because exploitation depends on this specific directory naming pattern; randomly-named or UUID-based directories are not vulnerable. Affects network-accessible deployments (AV:N) where the /api/contents/ endpoint is reachable. Single-tenant deployments or those with non-overlapping directory names (e.g., UUID-based: '3f7a2b1c-user1' vs '8d4e9a3b-user2') are not exploitable despite running vulnerable code versions. |
| Impact | Real-world risk is HIGH for multi-tenant Jupyter deployments but context-dependent. CVSS 7.1 (AV:N/AC:H/PR:L/UI:N) correctly identifies network attack vector requiring low privileges (authenticated user) with high complexity (specific directory naming collision required). The AC:H rating reflects that exploitation requires predictable sibling directory names sharing a prefix with the attacker's root_dir - not all deployments meet this condition. Impact is severe when conditions align: attackers gain unauthorized read/write/delete access across user boundaries (C:H/I:H/A:L). Publicly available exploit code exists (full PoC by @stef41), lowering exploitation barriers. No EPSS score or CISA KEV status provided, suggesting no confirmed widespread exploitation at time of analysis. Primary risk environments: JupyterHub multi-tenant systems with sequential user naming (user1-userN), educational platforms, or systems allowing user-controlled directory names. Single-tenant or randomly-named directory deployments face minimal practical risk despite the vulnerability's presence. Patch available in version 2.18.0 significantly reduces urgency compared to unpatched vulnerabilities. |
| Exploit ScenarioDerived | An authenticated user 'user1' on a multi-tenant JupyterHub system sends a crafted POST request to /api/contents/%2e%2e/user10/notebook.ipynb/checkpoints with valid authentication token. The server's flawed startswith() check permits the traversal because 'user10' begins with 'user1'. The attacker successfully reads, modifies, or deletes user10's notebook files, potentially exfiltrating sensitive data models, credentials in code cells, or injecting malicious code into another user's workspace. Publicly available exploit code exists (PoC by @stef41), providing ready-to-use attack tooling requiring only valid credentials and knowledge of target directory names. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
Authenticated users can access, modify, and delete files in sibling directories outside Jupyter Server's configured root_dir by exploiting a flawed string prefix check in path validation (CWE-22). Jupyter Server <=2.17.0 incorrectly uses startswith() validation, allowing attackers to traverse to directories like 'testtest/' when root is 'test/'. Publicly available exploit code exists. This primarily threatens multi-tenant deployments with predictable naming schemes (e.g., user1, user10-user19) where low-privileged users can escalate to access other users' workspaces. CVSS 7.1 reflects network-accessible attack requiring low privileges but high attack complexity; EPSS data not provided but real-world risk is significant for affected multi-tenant environments.
RemediationAI
Upgrade to Jupyter Server version 2.18.0 or later using pip install --upgrade jupyter-server>=2.18.0, as confirmed by vendor advisory GHSA-5789-5fc7-67v3. For systems unable to immediately patch, implement directory naming schemes that eliminate prefix collisions: use UUIDs, random strings, or sufficiently distinct prefixes (e.g., 'workspace_user1' vs 'workspace_user10' instead of 'user1' vs 'user10'). Trade-off: renaming existing directories requires data migration and may break hardcoded paths in notebooks or automation. Additional compensating control: implement filesystem-level permissions ensuring each user's system account can only access their designated root_dir, providing defense-in-depth even if application-level path validation fails (trade-off: increased administrative overhead and potential interference with legitimate cross-user collaboration features). Advisory and patch details: https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-5789-5fc7-67v3
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Jupyter Server is a backend web service for Jupyter interactive computing environments, providing RESTful APIs for file management within a configured root_dir. The vulnerability stems from improper path traversal prevention (CWE-22) in the file access validation logic. The server uses Python's string startswith() method to verify paths are within root_dir boundaries, but fails to account for sibling directories sharing the same prefix. For example, if root_dir is '/notebooks/user1/', the check incorrectly permits access to '/notebooks/user10/' because 'user10' starts with 'user1'. The exploit uses URL-encoded parent directory traversal (%2e%2e for '..') via the /api/contents/ endpoint to bypass intended containment. This affects the pip package jupyter-server (pkg:pip/jupyter-server) version 2.17.0 and earlier.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/jupyter-server/jupyter_server).
CVSS VectorVendor: https://github.com/jupyter-server/jupyter_server
Lifecycle Timeline
2DescriptionCVE.org
Summary
Jupyter Server <=2.17.0 can access directories sibling to the root directory, if it starts with the root dir's name.
PoC
Minimal:
.
├── test/ <- root directory.
│ └── test.txt
└── testtest/
└── secret.txt <- file to exfiltrate that we should not be able to access via APIHOST="http://localhost:8888"
TOKEN=""
SIBLING="testtest"
TARGET="secret.txt"
curl -s -X POST \
"$HOST/api/contents/%2e%2e/$SIBLING/$TARGET/checkpoints" \
-H "Authorization: token $TOKEN"Full PoC by @stef41: https://gist.github.com/Yann-P/66d4982a965dee8fcb8dd89db29e7006
Impact
It is possible for an authenticated user to access content outside the server's root_dir in siblings directories sharing the same prefix as the root_dir. The attacker can escalate access, reading, writing, and deleting from sibling directories.
This can have a tangible impact for deployments using predictable naming scheme with multi-tenant server, for example user1, user2, user3, ..., user10 etc, as user1 could access and modify files of all user10 - user19 and higher.
In a hypothetical system where users can choose a name of their folder, an attacker could choose a single-letter username to gain access to a significant number of sibling directories.
Workarounds
Use folder names that do not overlap.
Acknowledgments
Thank you to @stef41 for providing a useful PoC.
Executive ViewAI
CVE-2026-35397 affects Jupyter Server versions ≤2.17.0 and allows authenticated users to bypass directory access controls and access files outside their assigned workspace, potentially exposing other users' data in multi-tenant deployments. Organizations running Jupyter Server in shared environments where users have predictable naming patterns face immediate risk of lateral data access and potential privilege escalation. This vulnerability directly threatens data isolation guarantees critical to multi-tenant SaaS platforms and collaborative research infrastructures.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict Jupyter Server deployments to single-tenant or trusted-user-only configurations; (2) Implement filesystem-level access controls (ACLs) to prevent cross-user directory access independent of application validation; (3) Deploy network segmentation to limit authenticated access to Jupyter instances; (4) Monitor and alert on path traversal patterns in application logs; (5) Consider temporary operational pause of multi-tenant Jupyter Server instances until patched.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-27470
GHSA-5789-5fc7-67v3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB