What’s Vulnerable › Vulnerabilities
CVE-2026-6658: Cross-site Scripting (XSS) in jupyter/nbconvert
- Severity: medium (CVSS 5.4 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-26 · updated 2026-10-25
- Weakness: CWE-79
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.
Affected products
- jupyter/jupyter: through latest
References
- https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe
- https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe
Get alerted when CVE-2026-6658 or the next vulnerability affects your stack