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

Open
#3,512 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
1/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, rust
Domain
security

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Go
Stars
362
Forks
295
Avg merge
9h 29m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from evstack/ev-node

All issues in evstack/ev-node

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.