{"id":"CVE-2026-6658","aliases":["CVE-2026-6658","GHSA-9754-6rhw-gj3h"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS) in jupyter/nbconvert","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad en las versiones menor o igual que 7.17.0 de jupyter/nbconvert permite cross-site scripting (XSS) a través de la salida ’text/vnd.mermaid’ sin sanitizar en las exportaciones HTML. El bloque ’data_mermaid’ en ’share/templates/lab/base.html.j2’ renderiza la salida de celda ’text/vnd.mermaid’ directamente en HTML sin escapar, permitiendo a los atacantes inyectar HTML/JavaScript arbitrario al salir de la etiqueta ’[pre]’. Esta vulnerabilidad afecta a cualquier servidor que utilice nbconvert para renderizar cuadernos como HTML, permitiendo a los atacantes ejecutar JavaScript arbitrario en el contexto de los usuarios que visualizan la exportación HTML.","source":"nvd"}],"published":"2026-06-26T09:40:30.952Z","modified":"2026-11-06T18:00:04.178Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"jupyter","product":"jupyter/jupyter","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"7.17.0"}],"ecosystem":"PyPI","package":"nbconvert","purl":"pkg:pypi/nbconvert","source":"ghsa"}],"references":[{"url":"https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6658","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jupyter/nbconvert","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-26T10:19:03.505Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6658","url":"https://www.cve.org/CVERecord?id=CVE-2026-6658","licence":"CVE Terms of Use","modified":"2026-06-26T10:19:12.444Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9754-6rhw-gj3h","url":"https://github.com/advisories/GHSA-9754-6rhw-gj3h","licence":"CC-BY-4.0","modified":"2026-11-06T18:00:04.178Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6658","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6658","licence":"Public domain","modified":"2026-10-25T22:10:00.150Z"}],"updatedAt":"2026-11-25T22:59:26.460Z","epss":{"score":0.00161,"percentile":0.0549,"date":"2026-12-01T12:00:22.000Z"}}