{"id":"CVE-2026-42557","published":"2026-05-13T15:06:14Z","modified":"2026-08-28T12:04:30Z","title":"jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content","vendor":"jupyterlab","product":"jupyterlab","tier":"tail","description":{"text":"jupyterlab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook Architecture. Prior to 4.5.7, 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. This vulnerability is fixed in 4.5.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00486,"percentile":0.42794,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-mqcg-5x36-vfcg","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42557","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2477086","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42557.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43038","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:60520","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":8.56},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"jupyterlab","affectedVersions":[{"vendor":"jupyterlab","product":"jupyterlab","versions":["< 4.5.7"]},{"vendor":"jupyter","product":"notebook","versions":[">= 7.0.0, < 7.5.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-14T17:57:35.710941Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"jupyterlab","vulnerableRanges":["<4.5.7"],"patched":["4.5.7"],"from":["GHSA-mqcg-5x36-vfcg","PYSEC-2026-2537"],"provenance":"source"},{"ecosystem":"PyPI","package":"notebook","vulnerableRanges":[">=7.0.0, <7.5.6"],"patched":["7.5.6"],"from":["GHSA-mqcg-5x36-vfcg","PYSEC-2026-2681"],"provenance":"source"}],"summary":{"text":"JupyterLab (the jupyterlab product) contains a flaw in its HTML sanitizer and CommandLinker component, which allow button elements in HTML cell outputs to carry command-linker attributes that are not checked for origin. An attacker who can get a notebook containing a deceptive button into a user's environment can trigger arbitrary JupyterLab commands, including code execution, with a single click from that user, without the user submitting any code, and the attack requires the user to interact with the crafted button.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:27Z"},"euvd":{"id":"EUVD-2026-30000","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-22421","published":"2024-01-19","fixed":"7.0.7","kev":false},{"cve":"CVE-2024-43805","published":"2024-08-28","fixed":"7.2.2","kev":false,"link":{"from":"CVE-2024-43805","to":"CVE-2026-42557","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:notebook","fromFixed":"7.2.2","toFixed":"7.5.6","daysApart":623}]}},{"cve":"CVE-2026-40171","published":"2026-05-06","fixed":"7.5.6","kev":false},{"cve":"CVE-2026-42557","published":"2026-05-13","fixed":"7.5.6","kev":false},{"cve":"CVE-2026-102831","published":"2026-09-29","fixed":"7.6.3","kev":false,"link":{"from":"CVE-2026-42557","to":"CVE-2026-102831","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:notebook","fromFixed":"7.5.6","toFixed":"7.6.3","daysApart":139}]}},{"cve":"CVE-2026-102832","published":"2026-10-13","fixed":"7.6.3","kev":false,"link":{"from":"CVE-2026-42557","to":"CVE-2026-102832","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:notebook","fromFixed":"7.5.6","toFixed":"7.6.3","daysApart":153}]}}],"package":"PyPI:notebook"}}