Skip to content
JupyterPYSEC-2026-2532

Jupyter Server vulnerable to Path Traversal via incorrect root directory boundary check in _get_os_path()

Medium6.8CVE-2026-5422 · Published Jul 13, 2026

Source advisory

Affected versions

PackageAffectedFixed in
jupyter-server
PyPI
< 2.18.22.18.2
Details and references

A path traversal vulnerability exists in jupyter-server version 2.17.0 due to an incorrect root directory boundary check in the _get_os_path() function within jupyter_server/services/contents/fileio.py. The check uses startswith(root) without appending a trailing path separator, allowing sibling directories with names starting with the same prefix as root_dir to bypass the check. Additionally, the to_os_path() function in utils.py does not strip ".." from path parts, enabling traversal sequences to bypass the vulnerable check. This vulnerability can lead to unauthorized read/write access to files in sibling directories, potentially exposing sensitive data in shared hosting environments.

CVSS 3.0
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Severity from
the CVSS score
Also known as
CVE-2026-5422, GHSA-gf7q-q4j7-hp7c

More Jupyter advisories

All Jupyter
DateAdvisory
Jul 22JupyterLab: Allowlist/blocklist check in `PyPIExtensionManager.install()` not enforced for direct callers (missing `await`)
CVE-2026-73626Low0.0fixed in 4.5.10, 4.6.2
Jul 22JupyterLab PluginManager lock-rule enforcement bypass
GHSA-h5v5-8746-g7mmMediumfixed in 4.5.10, 4.6.2
Jul 22JupyterLab: PyPI extension blocklist package-name canonicalization bypass
CVE-2026-73416Mediumfixed in 4.5.10, 4.6.2
Jul 22JupyterLab: Image viewer allows XSS when opening malicious image in new browser tab
CVE-2026-73415Highfixed in 4.5.10, 4.6.2
Jul 22JupyterLab: Cross-site scripting (XSS) via crafted settings file (`overrides.json`)
CVE-2026-73417Highfixed in 4.5.10, 4.6.2
Jul 23jupyter-server is vulnerable to CORS origin validation bypass when the `allow_origin_pat` configuration is used
CVE-2026-6657Medium6.1no fix yet

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.