CVE-2026-6658 Details
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.
A cross-site scripting (XSS) vulnerability exists in Jupyter Nbconvert versions through 7.17.0. The issue arises in the HTML export process, where the 'data_mermaid' block in the 'share/templates/lab/base.html.j2' file renders 'text/vnd.mermaid' cell output directly into HTML without proper escaping. This flaw allows attackers to inject arbitrary HTML or JavaScript by breaking out of the '<pre>' tag. Consequently, any server utilizing Nbconvert to render notebooks as HTML is vulnerable, enabling the execution of malicious JavaScript in the context of users viewing the exported HTML.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 26, 2026CISA-ADP
Assessed Jun 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe | CISA-ADP | ExploitTechnical Description |
| https://huntr.com/bounties/47570290-3b26-4477-8cfa-fdef7db5aefe | [email protected] | ExploitTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jupyter/nbconvert | <= 7.17.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 26, 2026 | CVE Modified | CISA-ADP |
| Jun 26, 2026 | New CVE Received | [email protected] |
Volerion