{"id":"CVE-2024-22420","aliases":["CVE-2024-22420","GHSA-4m77-cmpx-vjc4","BIT-JUPYTER-BASE-NOTEBOOK-2024-22420","BIT-JUPYTER-NOTEBOOK-2024-22420","BIT-JUPYTERLAB-2024-22420","PYSEC-2026-1707","PYSEC-2026-2535"],"related":[],"kind":"vulnerability","state":"published","title":"Stored cross site scripting in Markdown Preview in JupyterLab","summary":"JupyterLab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook and Architecture. This vulnerability depends on user interaction by opening a malicious Markdown file using JupyterLab preview feature. A malicious user can access any data that the attacked user has access to as well as perform arbitrary requests acting as the attacked user. JupyterLab version 4.0.11 has been patched. Users are advised to upgrade. Users unable to upgrade should disable the table of contents extension.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"JupyterLab is an extensible environment for interactive and reproducible computing, based on the Jupyter Notebook and Architecture. This vulnerability depends on user interaction by opening a malicious Markdown file using JupyterLab preview feature. A malicious user can access any data that the attacked user has access to as well as perform arbitrary requests acting as the attacked user. JupyterLab version 4.0.11 has been patched. Users are advised to upgrade. Users unable to upgrade should disable the table of contents extension.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe vulnerability depends on user interaction by opening a malicious notebook with Markdown cells, or Markdown file using JupyterLab preview feature.\n\nA malicious user can access any data that the attacked user has access to as well as perform arbitrary requests acting as the attacked user.\n\n### Patches\n\nJupyterLab v4.0.11 was patched.\n\n### Workarounds\n\nUsers can either disable the table of contents extension by running:\n\n```bash\njupyter labextension disable @jupyterlab/toc-extension:registry\n```\n\n### References\n\nVulnerability reported via the [bug bounty program](https://app.intigriti.com/programs/jupyter/jupyter/detail) [sponsored by the European Commission](https://commission.europa.eu/news/european-commissions-open-source-programme-office-starts-bug-bounties-2022-01-19_en) and hosted on the [Intigriti platform](https://www.intigriti.com/).","format":"markdown","source":"ghsa"},{"lang":"es","text":"JupyterLab es un entorno extensible para informática interactiva y reproducible, basado en Jupyter Notebook y Architecture. Esta vulnerabilidad depende de la interacción del usuario al abrir un archivo Markdown malicioso utilizando la función de vista previa de JupyterLab. Un usuario malintencionado puede acceder a cualquier dato a los que tenga acceso el usuario atacado, así como realizar solicitudes arbitrarias actuando como el usuario atacado. Se ha parcheado la versión 4.0.11 de JupyterLab. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben desactivar la extensión de la tabla de contenido.","source":"nvd"}],"published":"2024-01-19T20:24:09.000Z","modified":"2026-09-10T03:50:04.771Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">=4.0.0, < 4.0.11","status":"affected"}],"vendor":"jupyterlab","product":"jupyterlab","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.11"}],"ecosystem":"PyPI","package":"jupyterlab","purl":"pkg:pypi/jupyterlab","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.7"}],"ecosystem":"PyPI","package":"notebook","purl":"pkg:pypi/notebook","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.0.11"}],"vendor":"jupyter","product":"jupyterlab","cpe":"cpe:2.3:a:jupyter:jupyterlab:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.0.0","fixed":"7.0.7"}],"vendor":"jupyter","product":"notebook","cpe":"cpe:2.3:a:jupyter:notebook:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"39"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.7"}],"ecosystem":"PyPI","package":"notebook","purl":"pkg:pypi/notebook","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.11"}],"ecosystem":"PyPI","package":"jupyterlab","purl":"pkg:pypi/jupyterlab","source":"pysec"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected"}],"ecosystem":"Bitnami","package":"jupyter-base-notebook","purl":"pkg:bitnami/jupyter-base-notebook","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.0.7"}],"ecosystem":"Bitnami","package":"jupyter-notebook","purl":"pkg:bitnami/jupyter-notebook","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.2.4"}],"ecosystem":"Bitnami","package":"jupyterlab","purl":"pkg:bitnami/jupyterlab","source":"bitnami"}],"references":[{"url":"https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4m77-cmpx-vjc4","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/jupyterlab/jupyterlab/commit/e1b3aabab603878e46add445a3114e838411d2df","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UQJKNRDRFMKGVRIYNNN6CKMNJDNYWO2H/","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22420","tags":["advisory","web"],"sources":["ghsa","pysec","bitnami"]},{"url":"https://github.com/jupyterlab/jupyterlab/commit/dda0033cd49449572d077bbecd33b18d8d05f48a","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jupyterlab/jupyterlab","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UQJKNRDRFMKGVRIYNNN6CKMNJDNYWO2H","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/notebook","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-4m77-cmpx-vjc4","tags":["advisory"],"sources":["pysec"]},{"url":"https://pypi.org/project/jupyterlab","tags":["package"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-08T15:53:23.117Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-22420","url":"https://www.cve.org/CVERecord?id=CVE-2024-22420","licence":"CVE Terms of Use","modified":"2025-05-30T14:25:05.056Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4m77-cmpx-vjc4","url":"https://github.com/advisories/GHSA-4m77-cmpx-vjc4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:04.771Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-22420","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22420","licence":"Public domain","modified":"2026-06-17T07:11:22.627Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1707","url":"https://osv.dev/vulnerability/PYSEC-2026-1707","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:39.178Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2535","url":"https://osv.dev/vulnerability/PYSEC-2026-2535","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:39.178Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JUPYTER-BASE-NOTEBOOK-2024-22420","url":"https://osv.dev/vulnerability/BIT-JUPYTER-BASE-NOTEBOOK-2024-22420","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.733Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JUPYTER-NOTEBOOK-2024-22420","url":"https://osv.dev/vulnerability/BIT-JUPYTER-NOTEBOOK-2024-22420","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.623Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JUPYTERLAB-2024-22420","url":"https://osv.dev/vulnerability/BIT-JUPYTERLAB-2024-22420","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.874Z"}],"updatedAt":"2026-11-25T22:58:36.241Z","epss":{"score":0.00573,"percentile":0.48702,"date":"2026-12-01T12:00:22.000Z"}}