HTML Sanitization Flaw in JupyterLab Enables Command Execution
CVE-2026-42557
8.6HIGH
What is CVE-2026-42557?
An issue affecting JupyterLab prior to version 4.5.7, whereby the HTML sanitizer permits specific data attributes on button elements. This flaw allows CommandLinker to react to click events across the entire document, executing commands without confirming the trustworthiness of the initiating element. Consequently, a user could unknowingly trigger harmful commands, including executing arbitrary code, by interacting with a compromised notebook containing deceptive button elements.
Affected Version(s)
jupyterlab < 4.5.7
notebook >= 7.0.0, < 7.5.6
