CVE-2024-22415 Unsecured endpoints in the jupyter-lsp server extension
Attackers can access and modify files outside the Jupyter root directory if the server is exposed to untrusted networks without OS-level access controls.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-22415?
CVE-2024-22415 is a high-severity path traversal vulnerability in jupyter-lsp jupyterlab-lsp, published on 18 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
jupyter-lsp is a coding assistance tool for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol. Installations of jupyter-lsp running in environments without configured file system access control (on the operating system level), and with jupyter-server instances exposed to non-trusted network are vulnerable to unauthorised access and modification of file system beyond the jupyter root directory. This issue has been patched in version 2.2.2 and all users are advised to upgrade. Users unable to upgrade should uninstall jupyter-lsp.
Which versions are affected by CVE-2024-22415?
3 open source packages ship an affected version, including jupyter-lsp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
jupyter-lsp PyPI | All versions | 2.2.2 |
jupyter-lsp PyPI | All versions | 2.2.2 |
jupyter-lsp PyPI | All versions | 2.2.2 |
Products include Jupyter Language Server Protocol Integration.
How do I fix CVE-2024-22415?
Upgrade jupyter-lsp to 2.2.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-22415 being exploited?
There is no known exploitation of CVE-2024-22415 in the wild and no public exploit code.
Sources
Also known as GHSA-4qhp-652w-c22x, PYSEC-2026-1478, openSUSE-SU-2024:13601-1.