{"id":"CVE-2026-6658","published":"2026-06-26T09:40:30Z","modified":"2026-06-26T10:19:12Z","title":"Cross-site Scripting (XSS) in jupyter/nbconvert","vendor":"jupyter","product":"jupyter/jupyter","tier":"tail","description":{"text":"A vulnerability in jupyter/nbconvert versions <= 7.17.0 allows for Cross-site Scripting (XSS) via unsanitized `text/vnd.mermaid` output in HTML exports. The `data_mermaid` block in `share/templates/lab/base.html.j2` renders `text/vnd.mermaid` cell output directly into HTML without escaping, enabling attackers to inject arbitrary HTML/JavaScript by breaking out of the `<pre>` tag. This vulnerability impacts any server using nbconvert to render notebooks as HTML, allowing attackers to execute arbitrary JavaScript in the context of users viewing the HTML export.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00227,"percentile":0.08013,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe","tags":[]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":1.6},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"jupyter","affectedVersions":[{"vendor":"jupyter","product":"jupyter/jupyter","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-26T10:19:03.505659Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nbconvert","vulnerableRanges":["<=7.17.0"],"patched":[],"from":["GHSA-9754-6rhw-gj3h"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-39642","exploited":false,"provenance":"source"}}