mistune 3.3.0未満 不均衡な角かっこ処理でCPUを使い切られるDoS
Summary
mistune 3.0.0以上3.3.0未満のインラインリンク解析処理に計算量の問題があり、認証なしの攻撃者が角かっこの不均衡なMarkdownを送ることでCPUを使い果たし、処理が数分間止まるおそれがあります。修正版として3.3.0が公開されているため、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.0.0以上3.3.0未満のインラインリンク解析処理に計算量の問題があり、認証なしの攻撃者が角かっこの不均衡なMarkdownを送ることでCPUを使い果たし、処理が数分間止まるおそれがあります。修正版として3.3.0が公開されているため、3.3.0以上へ更新してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| lepture | mistune |
≥ 3.0.0, < 3.3.0 |
3.3.0 |
Original description The description as published by the source.
Mistune from 3.0.0 before 3.3.0 contains an algorithmic complexity vulnerability in the inline link parser's parse_link_text function that allows unauthenticated attackers to exhaust CPU with unbalanced brackets. Attackers can submit Markdown containing many unbalanced '[' or '![' characters, forcing repeated unbounded forward scans and tying up worker processes for minutes.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web github.com
- web vulncheck.com
- web nvd.nist.gov
- web github.com