Skip to content
High 7.5 Web Application

Vulnerability in mistune

CVE-2026-76098 First seen on SecPulse

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 以降へ更新してください。

What is the problem

MistuneのMarkdownパーサーが、深くネストされたトークンによるDoSの影響を受ける。

Affected scope

バージョン3.3.0から3.3.2のMistune

Severity

HTMLレンダリングがPythonの再帰制限を超えクラッシュを引き起こすため、高い影響がある。

How to fix

バージョン3.3.3にアップデートする。

Workaround

一時的にMarkdown解析の深さを制限する。

Detection

Markdownファイルを解析し、深くネストされたトークンの存在を確認する。

Affected packages

PackageAffected → Fixed
pipmistune
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details