跳到正文
GitHub 安全公告库 (GHSA)·· 2 天前AI 评分42

markdown-it 修复 smartquotes 规则二次复杂度问题(15.0.2、14.3.2)

markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes

AI 导读

markdown-it 在启用 typographer: true 时,大量开引号后接不匹配的闭引号会使 smartquotes 规则反复扫描整个开引号栈,造成二次复杂度处理时间,可被用于对处理不可信输入的应实施 DoS。

来源:GitHub 安全公告库 (GHSA) · github.com