CVE catalog

CVE-2026-6658

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/la

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.23% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannbconvertsid7.17.1-2vulnerable
Debiannbconvertforky7.17.1-2vulnerable
Debiannbconverttrixie7.16.6-1+deb13u1vulnerable
Debiannbconvertbookworm6.5.3-3vulnerable
CpenbconvertNot reportedNot reportedvulnerable
Opensusepython-nbconverttumbleweed7.17.1-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannbconvertsourcesid(unfixed)not yet assignedNot reportedNot reported
Debiannbconvertsourceforky(unfixed)not yet assignedNot reportedNot reported
Debiannbconvertsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannbconvertsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Opensusepython-nbconvertrpmtumbleweed7.17.1-2.1Not reportedOPENSUSE-SU-2026:11725-1Not reported

Notes

[trixie] nbconvert: Minor issue [bookworm] nbconvert: Minor issue, XSS

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [nbconvert]

    Details (2)
    • 6.5.3-3 · all · bookworm

      Affected

      nvd · nbconvert · debian · bookworm; nvd · nbconvert · debian · 12

    • 6.5.3-3 · all · bookworm

      Affected

      nvd · nbconvert · debian · bookworm; nvd · nbconvert · debian · 12

  • Source package: [nbconvert]

    Details (2)
    • 6.5.3-3 · all · bookworm

      Affected

      nvd · nbconvert · debian · bookworm; nvd · nbconvert · debian · 12

    • 6.5.3-3 · all · bookworm

      Affected

      nvd · nbconvert · debian · bookworm; nvd · nbconvert · debian · 12

  • Source package: [nbconvert]

    Details (2)
    • 6.5.3-3 · all · bookworm

      Affected

      nvd · nbconvert · debian · bookworm; nvd · nbconvert · debian · 12

    • 6.5.3-3 · all · bookworm

      Affected

      nvd · nbconvert · debian · bookworm; nvd · nbconvert · debian · 12

[Debian 13 (Trixie)]

  • Source package: [nbconvert]

    Details (2)
    • 7.16.6-1+deb13u1 · all · trixie

      Affected

      nvd · nbconvert · debian · 13

    • 7.16.6-1+deb13u1 · all · trixie

      Affected

      nvd · nbconvert · debian · 13

  • Source package: [nbconvert]

    Details (2)
    • 7.16.6-1+deb13u1 · all · trixie

      Affected

      nvd · nbconvert · debian · 13

    • 7.16.6-1+deb13u1 · all · trixie

      Affected

      nvd · nbconvert · debian · 13

  • Source package: [nbconvert]

    Details (2)
    • 7.16.6-1+deb13u1 · all · trixie

      Affected

      nvd · nbconvert · debian · 13

    • 7.16.6-1+deb13u1 · all · trixie

      Affected

      nvd · nbconvert · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-nbconvert]

    Details (1)
    • 7.17.1-1.4 · noarch · tumbleweed

      Unknown · Fixed: 7.17.1-2.1

      Version impact unknown

      nvd · python-nbconvert · opensuse · tumbleweed

  • Source package: [python-nbconvert]

    Details (1)
    • 7.17.1-1.4 · noarch · tumbleweed

      Unknown · Fixed: 7.17.1-2.1

      Version impact unknown

      nvd · python-nbconvert · opensuse · tumbleweed

  • Source package: [python-nbconvert]

    Details (1)
    • 7.17.1-1.4 · noarch · tumbleweed

      Unknown · Fixed: 7.17.1-2.1

      Version impact unknown

      nvd · python-nbconvert · opensuse · tumbleweed

  • Source package: [python-nbconvert]

    Details (1)
    • 7.17.1-1.4 · noarch · tumbleweed

      Unknown · Fixed: 7.17.1-2.1

      Version impact unknown

      nvd · python-nbconvert · opensuse · tumbleweed

Observed:

References