GHSA-7jqv-fw35-gmx9

Suggest an improvement
Source
https://github.com/advisories/GHSA-7jqv-fw35-gmx9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-7jqv-fw35-gmx9/GHSA-7jqv-fw35-gmx9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7jqv-fw35-gmx9
Aliases
Downstream
CGA (5)
Published
2026-04-21T17:18:53Z
Modified
2026-09-10T03:50:43Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding
Details

Summary

When HTMLExporter.embed_images=True, nbconvert's markdown renderer allows arbitrary file read via path traversal in image references. A malicious notebook can exfiltrate sensitive files from the conversion host by embedding them as base64 data URIs in the output HTML.

Patches

Upgrade to nbconvert 7.17.1

Workarounds

Do not enable HTMLExporter.embed_images (it is not enabled by default).

Database specific
{
    "cwe_ids":  [
        "CWE-22",
        "CWE-23"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-04-21T17:18:53Z",
    "nvd_published_at":  "2026-04-21T01:16:06Z",
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / nbconvert

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
7.17.1

Affected versions

6.*
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/04/GHSA-7jqv-fw35-gmx9/GHSA-7jqv-fw35-gmx9.json"