GHSA-9754-6rhw-gj3h

Suggest an improvement
Source
https://github.com/advisories/GHSA-9754-6rhw-gj3h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9754-6rhw-gj3h/GHSA-9754-6rhw-gj3h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9754-6rhw-gj3h
Aliases
  • CVE-2026-6658
Published
2026-06-26T12:30:29Z
Modified
2026-11-06T18:00:04Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
jupyter/nbconvert allows Cross-site Scripting (XSS) via unsanitized `text/vnd.mermaid` output in HTML exports
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-06T17:50:14Z",
    "nvd_published_at":  "2026-06-26T10:16:22Z",
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / nbconvert

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
7.17.0

Affected versions

0.*
0.0.0
4.*
4.0.0
4.1.0
4.2.0
4.3.0
5.*
5.0.0b1
5.0.0
5.1.0
5.1.1
5.2.1
5.3.0
5.3.1
5.4.0
5.4.1.dev0
5.4.1
5.5.0
5.6.0
5.6.1
6.*
6.0.0a0
6.0.0a1
6.0.0a2
6.0.0a3
6.0.0a4
6.0.0a5
6.0.0a6
6.0.0b7
6.0.0rc0
6.0.0
6.0.1
6.0.2
6.0.3
6.0.4
6.0.5
6.0.6
6.0.7
6.1.0rc0
6.1.0
6.1.1b0
6.2.0rc0
6.2.0rc1
6.2.0rc2
6.2.0
6.3.0b0
6.3.0
6.4.0
6.4.1
6.4.2
6.4.3
6.4.4
6.4.5
6.5.0
6.5.1
6.5.2
6.5.3
6.5.4
7.*
7.0.0rc0
7.0.0rc1
7.0.0rc2
7.0.0rc3
7.0.0
7.1.0
7.2.0
7.2.1
7.2.2
7.2.3
7.2.4
7.2.5
7.2.6
7.2.7
7.2.8
7.2.9
7.2.10
7.3.0
7.3.1
7.4.0
7.5.0
7.6.0
7.7.0
7.7.1
7.7.2
7.7.3
7.7.4
7.8.0
7.9.0
7.9.1
7.9.2
7.10.0
7.11.0
7.12.0
7.13.0
7.13.1
7.14.0
7.14.1
7.14.2
7.15.0
7.16.0
7.16.1
7.16.2
7.16.3
7.16.4
7.16.5
7.16.6
7.17.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9754-6rhw-gj3h/GHSA-9754-6rhw-gj3h.json"