Vulnerability Description
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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe
- https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe
FAQ
What is CVE-2026-6658?
CVE-2026-6658 is a vulnerability with a CVSS score of 5.4 (MEDIUM). 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/la...
How severe is CVE-2026-6658?
CVE-2026-6658 has been rated MEDIUM with a CVSS base score of 5.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-6658?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.