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

Aberta
#3,512 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
1/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
1/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
markdown, rust
Domínio
security

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Go
Estrelas
362
Forks
295
Merge médio
9h 29min
PRs com merge (30d)
3

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de evstack/ev-node

Todas as issues de evstack/ev-node

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.