CVE-2025-59842: Jupyterlab Remote Code Execution Vulnerability
LOWCVE-2025-59842 is a LOW remote code execution vulnerability (CWE-1022: Use of Web Link to Untrusted Target with window.opener Access) affecting Jupyterlab libraries in the PyPI ecosystem. The issue involves jupyterlab latex typesetter links did not enforce `noopener` attribute. Remediation is available by upgrading affected packages to version 4.4.8.
CVE-2025-59842 at a Glance
How to Fix CVE-2025-59842
To remediate this vulnerability, upgrade all affected Jupyterlab dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install jupyterlab>=4.4.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show jupyterlab
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-59842, inspect your installed packages using pip:
pip show jupyterlab
Analyze the terminal output to locate any version of Jupyterlab in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.8), your application is affected.
Note: The pip show jupyterlab command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1022: Use of Web Link to Untrusted Target with window.opener Access, where the web application produces links to untrusted external sites outside of its sphere of control, but it does not properly prevent the external site from modifying security-critical properties of the window.opener object, such as the location property. In Jupyterlab, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59842 Affected Jupyterlab Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jupyterlab
|
PyPI |
< 4.4.8
|
4.4.8
|
References
Frequently Asked Questions
What is CVE-2025-59842?
Which Jupyterlab versions are affected?
What version fixes CVE-2025-59842?
Is jupyterlab affected?
What CWE is associated with CVE-2025-59842?
How can I check PyPI dependencies for CVE-2025-59842?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vvfj-2jqx-52jm",
"modified" : "2025-09-26T19:24:06Z",
"published" : "2025-09-26T14:26:40Z",
"aliases" : [ "CVE-2025-59842" ],
"summary" : "JupyterLab LaTeX typesetter links did not enforce `noopener` attribute",
"details" : "Links generated with LaTeX typesetters in Markdown files and Markdown cells in JupyterLab and Jupyter Notebook did not include the `noopener` attribute.\n\nThis is deemed to have no impact on the default installations. Theoretically users of third-party LaTeX-rendering extensions could find themselves vulnerable to reverse tabnabbing attacks if:\n- links generated by those extensions included `target=_blank` (no such extensions are known at time of writing) and\n- they were to click on a link generated in LaTeX (typically visibly different from other links).\n\nFor consistency with handling on other links, new versions of JupyterLab will enforce `noopener` and `target=_blank` on all links generated by typesetters. The former will harden the resilience of JupyterLab to extensions with lack of secure defaults in link rendering, and the latter will improve user experience by preventing accidental state loss when clicking on links rendered by LaTeX typesetters.\n\n### Impact\n\nSince the official LaTeX typesetter extensions for JupyterLab: `jupyterlab-mathjax` (default), `jupyterlab-mathjax2` and `jupyterlab-katex` do not include the `target=_blank`, there is no impact for JupyterLab users.\n\n### Patches\n\nJupyterLab 4.4.8\n\n### Workarounds\n\nNo workarounds are necessary.\n\n### References\n\nNone",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "jupyterlab"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.4.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.4.7"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-vvfj-2jqx-52jm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59842"
}, {
"type" : "WEB",
"url" : "https://github.com/jupyterlab/jupyterlab/commit/88ef373039a8cc09f27d3814382a512d9033675c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jupyterlab/jupyterlab"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1022" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-26T14:26:40Z",
"nvd_published_at" : "2025-09-26T16:15:48Z"
}
}