Summary
Alvaro Muñoz discovered that nbconvert did not properly sanitize certain
notebook content when converting notebooks to HTML. If a user were tricked
into converting a specially crafted notebook, an attacker could possibly
use this issue to perform cross-site scripting attacks. (CVE-2021-32862)
It was discovered that nbconvert did not properly validate output file
names stored in notebook metadata when extracting cell outputs. If a user
were tricked into converting a specially crafted notebook, an attacker
could possibly use this issue to write arbitrary files. This issue only
affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2026-114140)
Fixed packages 3
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | nbconvert | 5.3.1-1ubuntu0.1~esm3 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | nbconvert | 5.6.1-1ubuntu0.1~esm3 |
| Ubuntu · Pro 22.04 LTS Pro:22.04:LTS | nbconvert | 6.4.0-1ubuntu0.1~esm3 |
Vulnerabilities 2
-
High 8.8CVE-2026-114140 Public exploit
nbconvert: File write via path traversal in cell output filenames
The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. From 5.4.0 until 7.17.2, ExtractOutputPreprocessor in nbconvert/preprocessors/extractoutput.py joins the attacker-controlled cell output metadata f…
-
High 7.5
nbconvert vulnerable to cross-site scripting (XSS) via multiple exploit paths
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-sit…