CVE-2025-59842: Jupyterlab Remote Code Execution Vulnerability

LOW
Advisory Identifier: GHSA-vvfj-2jqx-52jm
CWE-1022
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-59842
GHSA Identifier GHSA-vvfj-2jqx-52jm
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1022: Use of Web Link to Untrusted Target with window.opener Access
Affected Product Jupyterlab
Package Ecosystem PyPI
Published Date
Last Updated

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.

jupyterlab fixed: 4.4.8
pip install jupyterlab>=4.4.8
Verify Direct and Transitive Dependencies

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

Links generated with LaTeX typesetters in Markdown files and Markdown cells in JupyterLab and Jupyter Notebook did not include the `noopener` attribute. This 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: - links generated by those extensions included `target=_blank` (no such extensions are known at time of writing) and - they were to click on a link generated in LaTeX (typically visibly different from other links). For 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. ### Impact Since 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. ### Patches JupyterLab 4.4.8 ### Workarounds No workarounds are necessary. ### References None

CVE-2025-59842 Affected Jupyterlab Versions

1 component(s)
Fixed Versions:
4.4.8
Product / Package Ecosystem Affected Versions Fixed Version
jupyterlab
PyPI
< 4.4.8
4.4.8

References

Frequently Asked Questions

What is CVE-2025-59842?
CVE-2025-59842 is a security vulnerability in Jupyterlab involving JupyterLab LaTeX typesetter links did not enforce `noopener` attribute under CWE-1022: Use of Web Link to Untrusted Target with window.opener Access.
Which Jupyterlab versions are affected?
Affected versions include releases prior to 4.4.8 across affected packages: jupyterlab.
What version fixes CVE-2025-59842?
Upgrading to 4.4.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jupyterlab affected?
Yes, jupyterlab is affected in releases prior to 4.4.8. Upgrade your dependency to 4.4.8 or later.
What CWE is associated with CVE-2025-59842?
CVE-2025-59842 is classified under CWE-1022: Use of Web Link to Untrusted Target with window.opener Access (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.).
How can I check PyPI dependencies for CVE-2025-59842?
Run the dependency tree command: 'pip show jupyterlab'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}