Mistune 3.3.0未満で大量の角括弧により処理が遅延し、サービス停止のおそれ
Summary
Mistune 3.3.0より前のバージョンには、インラインのリンク解析で処理量が急増する脆弱性があります。認証なしの攻撃者が閉じられていない「[」を長く含む小さなMarkdownを送ると、CPUを使い果たし、レンダリング処理が長時間止まるおそれがあります。修正版の3.3.0以降へ更新してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
Mistune 3.3.0より前のバージョンには、インラインのリンク解析で処理量が急増する脆弱性があります。認証なしの攻撃者が閉じられていない「[」を長く含む小さなMarkdownを送ると、CPUを使い果たし、レンダリング処理が長時間止まるおそれがあります。修正版の3.3.0以降へ更新してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| lepture | mistune |
< 3.3.0 |
3.3.0 |
Original description The description as published by the source.
Mistune before 3.3.0 contains an algorithmic complexity vulnerability in the inline link parser that allows unauthenticated attackers to exhaust CPU by submitting long runs of unmatched '[' characters. Attackers can send small markdown payloads that trigger O(N^2) parse_link_text and parse_link_label probing, occupying rendering workers for 30+ seconds per 16 KB input.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web github.com
- web vulncheck.com
- web nvd.nist.gov
- web github.com