CVE-2026-6658Cross-site Scripting (XSS) in jupyter/nbconvert
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | nbconvert | Fix pending | UBUNTU-CVE-2026-6658 | |
| Ubuntu 26.04 | nbconvert | Under investigation | UBUNTU-CVE-2026-6658 | |
| Ubuntu 25.10 | nbconvert | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-6658 | |
| Ubuntu 24.04 | nbconvert | Under investigation | UBUNTU-CVE-2026-6658 | |
| Ubuntu 22.04 | nbconvert | Under investigation | UBUNTU-CVE-2026-6658 | |
| Ubuntu 20.04 | nbconvert | Fix pending | UBUNTU-CVE-2026-6658 | |
| Ubuntu 18.04 | nbconvert | Fix pending | UBUNTU-CVE-2026-6658 | |
| Debian 14 | nbconvert | Fix pending | DEBIAN-CVE-2026-6658 | |
| Debian 13 | nbconvert | Fix pending | DEBIAN-CVE-2026-6658 | |
| Debian 12 | nbconvert | Fix pending | DEBIAN-CVE-2026-6658 | |
| PyPI library | nbconvert | Fix pending | GHSA-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.
- jupyter/jupyter: affected: unspecified to latest
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.