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

Aperta
#3,511 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
go, rust
Ambito
backend, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
362
Fork
295
Merge medio
9h 29m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di evstack/ev-node

Tutte le issue di evstack/ev-node

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.