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

オープン
#3,512 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

evstack/ev-node のほかの issue

evstack/ev-node の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。