CVEfocus › CVE database › CVE-2026-6658

CVE-2026-6658Cross-site Scripting (XSS) in jupyter/nbconvert

CVSS 5.4 MediumEPSS 0.2% (higher than 8% of CVEs)Published 2026-06-26Updated 2026-06-26Assigner: @huntr_ai

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.

CWE-79

What to do

Debian, PyPI, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10nbconvertFix pendingUBUNTU-CVE-2026-6658
Ubuntu 26.04nbconvertUnder investigationUBUNTU-CVE-2026-6658
Ubuntu 25.10nbconvertWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-6658
Ubuntu 24.04nbconvertUnder investigationUBUNTU-CVE-2026-6658
Ubuntu 22.04nbconvertUnder investigationUBUNTU-CVE-2026-6658
Ubuntu 20.04nbconvertFix pendingUBUNTU-CVE-2026-6658
Ubuntu 18.04nbconvertFix pendingUBUNTU-CVE-2026-6658
Debian 14nbconvertFix pendingDEBIAN-CVE-2026-6658
Debian 13nbconvertFix pendingDEBIAN-CVE-2026-6658
Debian 12nbconvertFix pendingDEBIAN-CVE-2026-6658
PyPI librarynbconvertFix pendingGHSA-9754-6rhw-gj3h

What the vendor says

As published in the CVE record by @huntr_ai, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.