{"answers":{"affected":"9 open source packages ship an affected version, including jupyterlab, jupyter-base-notebook and jupyter-notebook. It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-42557 in the wild and no public exploit code.","fix":"Upgrade jupyterlab to 4.5.7 or later.","what":"CVE-2026-42557 is a high-severity cross-site scripting vulnerability in jupyterlab, published on 13 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-42557 and fix it if it is affected.\n\nWhat it is: CVE-2026-42557 is a high-severity cross-site scripting vulnerability in jupyterlab, published on 13 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-42557 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jupyterlab (Bitnami): affected all versions; fixed in 4.5.7\n- jupyterlab (PyPI): affected all versions; fixed in 4.5.7\n- jupyterlab (PyPI): affected all versions; fixed in 4.5.7\n- jupyterlab (PyPI): affected all versions; fixed in 4.5.7\n- jupyter-base-notebook (Bitnami): affected from 7.0.0; fixed in 7.5.6\n- jupyter-notebook (Bitnami): affected from 7.0.0; fixed in 7.5.6\n- notebook (PyPI): affected from 7.0.0; fixed in 7.5.6\n- notebook (PyPI): affected from 7.0.0; fixed in 7.5.6\n- notebook (PyPI): affected from 7.0.0; fixed in 7.5.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42557/ (Markdown: https://insights.sbomify.com/CVE-2026-42557/index.md)","id":"CVE-2026-42557","markdown":"https://insights.sbomify.com/CVE-2026-42557/index.md","name":"CVE-2026-42557","record":{"aliases":["BIT-jupyter-base-notebook-2026-42557","BIT-jupyter-notebook-2026-42557","BIT-jupyterlab-2026-42557","CLEANSTART-2026-AQ42255","CLEANSTART-2026-CB04703","DEBIAN-CVE-2026-42557","GHSA-mqcg-5x36-vfcg","PYSEC-2026-2537","PYSEC-2026-2681","UBUNTU-CVE-2026-42557"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JupyterLab web interface","requires_auth":"none","summary":"Attackers can execute arbitrary JupyterLab commands via malicious HTML buttons in notebook outputs, leading to code execution upon user click.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jupyterlab","vendor":"jupyter"},{"product":"notebook","vendor":"jupyter"}],"cvss":{"score":8.6,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["Bitnami","PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"jupyterlab: Command linker attributes in HTML enable one-click command execution from untrusted content","id":"CVE-2026-42557","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":9,"n_references":1,"next":{"headline":"Xibo Vulnerable to Stored XSS and Iframe Sandbox Escape via Data Connector Script in DataSet","id":"CVE-2026-42558"},"packages":[{"ecosystem":"Bitnami","fixed":["7.5.6"],"introduced":["7.0.0"],"last_affected":[],"package":"jupyter-base-notebook","purl":"pkg:bitnami/jupyter-base-notebook","source":"BIT-jupyter-base-notebook-2026-42557"},{"ecosystem":"Bitnami","fixed":["7.5.6"],"introduced":["7.0.0"],"last_affected":[],"package":"jupyter-notebook","purl":"pkg:bitnami/jupyter-notebook","source":"BIT-jupyter-notebook-2026-42557"},{"ecosystem":"Bitnami","fixed":["4.5.7"],"introduced":["0"],"last_affected":[],"package":"jupyterlab","purl":"pkg:bitnami/jupyterlab","source":"BIT-jupyterlab-2026-42557"},{"ecosystem":"PyPI","fixed":["4.5.7"],"introduced":["0"],"last_affected":[],"package":"jupyterlab","purl":null,"source":"GHSA-mqcg-5x36-vfcg"},{"ecosystem":"PyPI","fixed":["4.5.7"],"introduced":["0"],"last_affected":[],"package":"jupyterlab","purl":"pkg:pypi/jupyterlab","source":"GHSA-mqcg-5x36-vfcg"},{"ecosystem":"PyPI","fixed":["4.5.7"],"introduced":["0"],"last_affected":[],"package":"jupyterlab","purl":"pkg:pypi/jupyterlab","source":"PYSEC-2026-2537"},{"ecosystem":"PyPI","fixed":["7.5.6"],"introduced":["7.0.0"],"last_affected":[],"package":"notebook","purl":null,"source":"GHSA-mqcg-5x36-vfcg"},{"ecosystem":"PyPI","fixed":["7.5.6"],"introduced":["7.0.0"],"last_affected":[],"package":"notebook","purl":"pkg:pypi/notebook","source":"GHSA-mqcg-5x36-vfcg"},{"ecosystem":"PyPI","fixed":["7.5.6"],"introduced":["7.0.0"],"last_affected":[],"package":"notebook","purl":"pkg:pypi/notebook","source":"PYSEC-2026-2681"}],"prev":{"headline":"Postiz stored XSS in public preview page","id":"CVE-2026-42556"},"products":["jupyterlab","notebook"],"published":"2026-05-13","related":[{"cvss_score":10,"headline":"Remote Code Execution (RCE) vulnerability in jupyterlab extension template `update-integration-tests` GitHub Action","id":"CVE-2024-39700","kev_date_added":null,"published":"2024-07-16"},{"cvss_score":8.8,"headline":"JupyterLab has an Extension Manager API/GUI Policy Discrepancy, allowing 3rd party (malicious) extensions install via POST request","id":"CVE-2026-42266","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":7.6,"headline":"HTML injection in Jupyter Notebook and JupyterLab leading to DOM Clobbering","id":"CVE-2024-43805","kev_date_added":null,"published":"2024-08-28"},{"cvss_score":7.4,"headline":"JupyterLab: XSS due to lack of sanitization of the action attribute of an html \u003cform\u003e","id":"CVE-2021-32797","kev_date_added":null,"published":"2021-08-09"},{"cvss_score":2.1,"headline":"JupyterLab LaTeX typesetter links did not enforce `noopener` attribute","id":"CVE-2025-59842","kev_date_added":null,"published":"2025-09-26"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-28","vendors":["jupyter","jupyterlab"]},"summary":"Attackers can execute arbitrary JupyterLab commands via malicious HTML buttons in notebook outputs, leading to code execution upon user click.","url":"https://insights.sbomify.com/CVE-2026-42557/"}