Quick answers
- Is CVE-2026-5422 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-5422 being exploited in the wild.
- How severe is CVE-2026-5422?
- Medium severity, with a CVSS score of 6.8, published 2 June 2026.
- Which products and versions are affected?
- jupyter-server (PyPI) ECOSYSTEM:introduced=0,fixed=2.18.2.
- Is there a fix for CVE-2026-5422?
- Yes. jupyter-server (PyPI): upgrade to 2.18.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-5422 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-5422?
- Check whether you run jupyter-server (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- jupyter-server (PyPI): upgrade to 2.18.2 or later
pip install "jupyter-server>=2.18.2"
Technical details
A path traversal vulnerability exists in jupyter-server versions prior to 2.18.2. The root cause is an insufficient boundary check in the `_get_os_path()` function within `fileio.py`, which uses `startswith(root)` without a trailing path separator. This allows sibling directories sharing the same prefix as the `root_dir` to bypass security checks. Furthermore, the `to_os_path()` utility fails to strip '..' sequences, facilitating traversal. An authenticated attacker with network access can exploit this to achieve unauthorized read and write access to files outside the intended root directory. The issue is addressed in version 2.18.2.
Affected products
- Jupyter jupyter-server < 2.18.2
Identifiers
- CVE-2026-5422
- GHSA-gf7q-q4j7-hp7c
- PYSEC-2026-2532
Timeline
- 2026-06-02: disclosed
- 2026-06-02: advisory
- 2026-07-09: patched