Skip to main content
VulnerabilityPublished

CVE-2026-6658: jupyter/jupyter · Cross-site Scripting

Affects jupyter/jupyterSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.4 Medium : upgrade to 7.17.1 when convenient.

Data as of 8 Nov 2026, 23:24 UTC

CVSS 3.0 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 7.17.1
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 8 Nov 2026.

What to do

Upgrade jupyter-nbconvert to 7.17.1.

Affected software

ProductAffectedFixed in
jupyterjupyter/jupyterAffected
  • ≥ unspecified, ≤ latest
Fixed in–
PyPIjupyter-nbconvertpkg:pypi/jupyter-nbconvertOther threatsAffected
  • <7.17.1
Fixed in
  • 7.17.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, users should avoid rendering or sharing HTML exports of notebooks containing `text/vnd.mermaid` output from untrusted sources. Applying strict content sanitization or disabling rendering of `text/vnd.mermaid` output in HTML exports may reduce risk.

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.

References

Community reviews

Loading reviews…