PT-2026-52688 · Nbconvert · Nconvert
Published
2026-06-26
·
Updated
2026-06-26
·
CVE-2026-6658
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
nbconvert versions prior to 7.17.1
Description
An issue exists where
text/vnd.mermaid output in HTML exports is not properly sanitized. Specifically, the data mermaid block in share/templates/lab/base.html.j2 renders this output directly into HTML without escaping. This allows an attacker to break out of the <pre> tag and inject arbitrary HTML or JavaScript, which is then executed in the context of users viewing the exported HTML file.Recommendations
Update nbconvert to a version later than 7.17.0.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nconvert