---
title: "CVE-2026-6658"
canonical_url: "https://pkgseek.com/security/CVE-2026-6658"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-6658

A vulnerability in jupyter/nbconvert versions &lt;= 7.17.0 allows for Cross-site Scripting (XSS) via unsanitized \`text/vnd.mermaid\` output in HTML exports. The \`data_mermaid\` block in \`share/templates/lab/base.html.j2\` renders \`text/vnd.mermaid\` cell output directly into HTML without escaping, enabling attackers to inject arbitrary HTML/JavaScript by breaking out of the \`&lt;pre&gt;\` 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.

CVE-2026-6658 严重级别为 MEDIUM (5.4)，共索引 3 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: MEDIUM (5.4)
- **受影响构建数**: 3
- **涉及发行版**: 1
- **已标明修复版本发行版**: 暂无已标明修复记录

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | jupyter-nbconvert | 7.16.6-1+deb13u1 | — |
| Debian | trixie | python3-nbconvert | 7.16.6-1+deb13u1 | — |
| Debian | trixie | python-nbconvert-doc | 7.16.6-1+deb13u1 | — |
