jupyter/nbconvert allows Cross-site Scripting (XSS) via unsanitized `text/vnd.mermaid` output in HTML exports
CVE-2026-6658 · GHSA-9754-6rhw-gj3h · published 2026-06-26 · updated 2026-11-06
- Severity
- Medium
- CVSS score
- 5.4
- Chance of exploitation (EPSS)
- 0.16%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
A vulnerability in jupyter/nbconvert versions ` 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.
No fixed release is listed yet for nbconvert. Limit what it can reach, or stop using it until a fix ships, and follow the source advisory for updates.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| nbconvert | PyPI | <= 7.17.0 | No fix yet |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalMalicious website can execute commands on the local system through XSS in the OpenCode web UIopencode-ai
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
- Highnbconvert: Arbitrary file write through path traversal in cell output filenames when exporting to md, latex, rst and asciidocnbconvert
- Highnbconvert has an uncontrolled search path that leads to unauthorized code execution on Windowsnbconvert
- Mediumnbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenamesnbconvert
- Mediumnbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embeddingnbconvert
- Mediumnbconvert vulnerable to cross-site scripting (XSS) via multiple exploit pathsnbconvert
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.