RUSTSEC-2026-0414: Exponential event growth with `ENABLE_WIKILINKS`

未關閉
#3,512 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
1/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
markdown, rust
領域
security

研究方向

The report identifies pulldown-cmark 0.13.4 and links the upstream issue and fix in #1102. Read the upstream issue and pull request to trace the wikilink event growth; the report says the fix shipped in 0.13.5. This issue documents a vulnerability already fixed upstream, so there is no new change specified here.

由索引模型根據 Issue 內容生成。

描述

Details
Package pulldown-cmark
Version 0.13.4
URL https://github.com/pulldown-cmark/pulldown-cmark/issues/1179
Patched Versions >=0.13.5
Unaffected Versions <0.13.0

When Options::ENABLE_WIKILINKS is enabled, a wikilink with a pipe separator
and empty display text, such as [[a|]], leaks its child node's sibling chain
into the content that follows it. Each such link roughly doubles the number of
events the parser yields for the rest of the document, so output grows
exponentially with input size: 16 repetitions of [[a|]] (112 bytes) yield
327,676 events, where the fixed parser yields 65. A document of a few kilobytes
is enough to exhaust memory in a process that collects the events or renders
them to HTML.

Applications that parse untrusted Markdown with ENABLE_WIKILINKS set,
including through Options::all(), are affected. The option is off by default.
Parsing without it is not affected.

The flaw was fixed in
#1102 and
released in 0.13.5.

主要語言
Go
星號
362
分支
295
平均合併
9 小時 29 分鐘
30 天內合併 PR
3

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

evstack/ev-node 的其他 Issue

查看 evstack/ev-node 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。