Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. jupyterlab
  4. ›
  5. CVE-2026-42557

CVE-2026-42557: JupyterLab's command linker attributes in HTML enable one-click command execution from untrusted content

May 6, 2026 (updated June 9, 2026)

JupyterLab’s HTML sanitizer allowlists data-commandlinker-command and data-commandlinker-args on button elements, while CommandLinker listens for all click events on document.body and executes the named command without checking whether the element came from trusted JupyterLab UI. A notebook with a pre-saved HTML cell output containing a deceptive button can trigger arbitrary JupyterLab commands - including arbitrary code execution - on a single user click, without any code being submitted for execution by the user.

References

  • github.com/advisories/GHSA-mqcg-5x36-vfcg
  • github.com/jupyterlab/jupyterlab/security/advisories/GHSA-mqcg-5x36-vfcg
  • jupyterlab.readthedocs.io/en/latest/user/commands.html
  • nvd.nist.gov/vuln/detail/CVE-2026-42557

Code Behaviors & Features

Detect and mitigate CVE-2026-42557 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.5.7

Fixed versions

  • 4.5.7

Solution

Upgrade to version 4.5.7 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/jupyterlab/CVE-2026-42557.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:31 +0000.