Description
The GitHub Security Lab discovered sixteen ways to exploit a cross-site scripting vulnerability in nbconvert. When using nbconvert to generate an HTML version of a user-controllable notebook, it is possible to inject arbitrary HTML which may lead to cross-site scripting (XSS) vulnerabilities if these HTML notebooks are served by a web server (eg: nbviewer).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jupyter | nbconvert | <= 6.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nbconvert | 6.5.1-1 | — |
| Debian 13 | nbconvert | 6.5.1-1 | — |
| Debian 12 | nbconvert | 6.5.1-1 | — |
| Debian 11 | nbconvert | 5.6.1-3+deb11u1 | DLA-3863-1 |
| Debian 10 | nbconvert | 5.4-2+deb10u1 | DLA-3442-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | nbconvert | No fix yet | — |
| Ubuntu 20.04 LTS | nbconvert | No fix yet | — |
| Ubuntu 18.04 LTS | nbconvert | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kubeflow-pipelines-visualization-server | 2.4.0-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | nbconvert | < 6.5.1 | 6.5.1 | GHSA-9jmq-rx5f-8jwq |
| PyPI | nbconvert | < 6.3.0a0 | 6.3.0a0 | PYSEC-2022-249 |
Advisories 2
- DLA-3442-1 nbconvert - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3863-1 nbconvert - security update Debian Security (DSA / DLA) · Mar 9, 2026