CVE-2024-39700 Remote Code Execution (RCE) vulnerability in jupyterlab extension template `update-integration-tests` GitHub Action
Remote code execution in JupyterLab extension template's GitHub Action allows attackers to execute arbitrary code via malicious pull requests.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-39700?
CVE-2024-39700 is a critical code injection vulnerability in jupyterlab extension-template, published on 16 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
JupyterLab extension template is a `copier` template for JupyterLab extensions. Repositories created using this template with `test` option include `update-integration-tests.yml` workflow which has an RCE vulnerability. Extension authors hosting their code on GitHub are urged to upgrade the template to the latest version. Users who made changes to `update-integration-tests.yml`, accept overwriting of this file and re-apply your changes later. Users may wish to temporarily disable GitHub Actions while working on the upgrade. We recommend rebasing all open pull requests from untrusted users as actions may run using the version from the `main` branch at the time when the pull request was created. Users who are upgrading from template version prior to 4.3.0 may wish to leave out proposed changes to the release workflow for now as it requires additional configuration.
Weakness: CWE-94
Which versions are affected by CVE-2024-39700?
2 open source packages ship an affected version, including jupyterlab. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
jupyterlab Bitnami | All versions | 4.3.0 |
jupyterlab PyPI | All versions | 4.3.0 |
Products include Jupyter Jupyterlab.
How do I fix CVE-2024-39700?
Upgrade jupyterlab to 4.3.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-39700 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39700 exists.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in jupyterlab extension-template
- CVE-2026-42266 JupyterLab has an Extension Manager API/GUI Policy Discrepancy, allowing 3rd party (malicious) extensions install via POST request
- CVE-2026-42557 jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content
- CVE-2024-43805 HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering
- CVE-2021-32797 JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
- CVE-2025-59842 JupyterLab LaTeX typesetter links did not enforce `noopener` attribute
Sources
Also known as BIT-jupyterlab-2024-39700, GHSA-45gq-v5wm-82wg, PYSEC-2024-322.