AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Mistune の 3.3.3 より前のバージョンでは、アスタリスクを大量に含む Markdown を処理すると再帰が深くなりすぎ、Python プロセスが RecursionError で停止するおそれがあります。markdown() や html() を含むすべての API が影響を受けます。修正版の 3.3.3 以降へ更新してください。
MistuneのMarkdownパーサーが、深くネストされたトークンによるDoSの影響を受ける。
バージョン3.3.0から3.3.2のMistune
HTMLレンダリングがPythonの再帰制限を超えクラッシュを引き起こすため、高い影響がある。
バージョン3.3.3にアップデートする。
一時的にMarkdown解析の深さを制限する。
Markdownファイルを解析し、深くネストされたトークンの存在を確認する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipmistune |
< 3.3.3→ 3.3.3 |
3.3.3 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-76098 mistune Fix available
- Ubuntu UBUNTU-CVE-2026-76098 mistune No fixed version in this record
Original description The description as published by the source.
Mistune is a Python Markdown parser with renderers and plugins. Versions 3.3.0 through 3.3.2 are vulnerable to DoS through deeply nested tokens. HTML rendering creates deeply nested emphasis tokens from consecutive asterisk characters, and recursive rendering in HTMLRenderer.render_token() can exceed Python's recursion limit and raise RecursionError, allowing crafted Markdown to crash a parsing process. This issue is fixed in version 3.3.3
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- web github.com
- web github.com
- web github.com