Jupyter Server: Path Traversal via incorrect startswith() root directory check allows access to sibling directories
CVE-2026-35397 · GHSA-5789-5fc7-67v3 · published 2026-05-05 · updated 2026-08-28
- Severity
- High
- CVSS score
- 7.1
- Chance of exploitation (EPSS)
- 0.62%
- Fixed in
- 2.18.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
It is possible for an authenticated user to access content outside the server's rootdir in siblings directories sharing the same prefix as the rootdir. 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.
Upgrade jupyter-server to 2.18.0 or later.
Use folder names that do not overlap.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| jupyter-server | PyPI | <= 2.17.0 | 2.18.0 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- HighJupyter Server: Gateway WebSocket handler bypasses kernel execute authorizationjupyter-server
- HighJupyter Server has a CORS Origin Validation Bypass via `re.match()` in `allow_origin_pat`jupyter-server
- HighJupyter Server's Authentication Cookies Remain Valid After Password Reset and Server Restartjupyter-server
- HighJupyter server Token bruteforcingjupyter-server, jupyter-server
- HighInsertion of Sensitive Information into Log File in Jupyter notebookjupyter-server
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.