Skip to main content
CVE-2026-6658VulnerabilityPublished

Jupyterlab: jupyter/nbconvert allows Cross-site Scripting (XSS) via unsanitized `text/vnd.mermaid` output in HTML

Affects jupyterlabSource GCVE Database

0
Compare
Authoritative record:CVE-2026-6658· Medium 5.4

Not known to be exploited · CVSS 5.4 Medium.

Data as of 9 Nov 2026, 23:33 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.
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 9 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Homebrewjupyterlabpkg:brew/jupyterlabOther threatsAffected
  • >=4.0.5_1
Fixed in–

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

AI-suggested

Until a fix is available, avoid rendering or sharing HTML exports generated by nbconvert from untrusted notebooks containing `text/vnd.mermaid` output. Consider sanitizing or disabling rendering of this output type in HTML exports as a temporary mitigation.

Description

Jupyterlab's nbconvert component versions up to 7.17.0 have a Cross-site Scripting (XSS) vulnerability due to unsanitized rendering of `text/vnd.mermaid` output in HTML exports. This allows injection of arbitrary HTML/JavaScript by breaking out of a <pre> tag in the exported HTML, potentially executing scripts in the context of users viewing the export.

References

Community reviews

Loading reviews…