RUSTSEC-2026-0433: Quadratic parsing of nested image wikilinks with `ENABLE_WIKILINKS`

未关闭
#3,511 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
go, rust
领域
backend, security

调研方向

The report describes a vulnerability in pulldown-cmark and points to the fix in pull request #1186, released in version 0.13.6. Start by checking whether ev-node uses an affected version with ENABLE_WIKILINKS enabled; the issue does not name files or tests. Done means confirming whether this repository is affected and, if so, addressing the vulnerable dependency or configuration.

由索引模型根据 Issue 内容生成。

描述

Details
Package pulldown-cmark
Version 0.13.4
URL https://github.com/pulldown-cmark/pulldown-cmark/pull/1186
Patched Versions >=0.13.6
Unaffected Versions <0.13.0

With Options::ENABLE_WIKILINKS, handle_wikilink builds a wikilink's target
from the raw text of its body: scan_wikilink_pipe walks it looking for |, then
contains('\0') and from_replace_nuls walk it again.
Once a wikilink is created, disable_all_links only disables Link entries, so
every enclosing ![[ stays live on the wikilink stack.
On ![[![[![[…]]]]]] each of those openers then resolves in turn and rescans
everything inside it, which is quadratic in the nesting depth.
The event count stays tiny, because in the unpiped case each enclosing image
replaces its body with a fresh text node, so all of that work is thrown away.

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
#1186 and
released in 0.13.6.

主要语言
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 摘要。