{"id":"CVE-2026-39378","state":"PUBLISHED","title":"nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding","description":"The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. In versions 6.5 through 7.17.0, 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. nbconvert 7.17.1 contains a fix. As a workaround, do not enable `HTMLExporter.embed_images`; it is not enabled by default.","publishedAt":"2026-04-21T00:17:00.684Z","updatedAt":"2026-04-21T13:43:29.081Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["jupyter nbconvert"],"affected":[{"vendor":"jupyter","product":"nbconvert","versions":[{"version":">= 6.5, < 7.17.1","status":"affected"}]}],"references":["https://github.com/jupyter/nbconvert/security/advisories/GHSA-7jqv-fw35-gmx9","https://github.com/jupyter/nbconvert/releases/tag/v7.17.1"],"weaknesses":["CWE-22","CWE-73"],"ingestedAt":"2026-10-29T20:11:50.837Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/39xxx/CVE-2026-39378.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-39378","state":"PUBLISHED","datePublished":"2026-04-21T00:17:00.684Z","dateUpdated":"2026-04-21T13:43:29.081Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-06T21:29:17.350Z"},"containers":{"cna":{"title":"nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding","descriptions":[{"lang":"en","value":"The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. In versions 6.5 through 7.17.0, 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. nbconvert 7.17.1 contains a fix. As a workaround, do not enable `HTMLExporter.embed_images`; it is not enabled by default."}],"affected":[{"vendor":"jupyter","product":"nbconvert","versions":[{"version":">= 6.5, < 7.17.1","status":"affected"}]}],"references":[{"url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-7jqv-fw35-gmx9","name":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-7jqv-fw35-gmx9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyter/nbconvert/releases/tag/v7.17.1","name":"https://github.com/jupyter/nbconvert/releases/tag/v7.17.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-73","lang":"en","description":"CWE-73: External Control of File Name or Path","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-21T00:17:00.684Z"},"source":{"advisory":"GHSA-7jqv-fw35-gmx9","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-21T13:43:09.070985Z","id":"CVE-2026-39378","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-21T13:43:29.081Z"}}]}}}