Exponential event growth with `ENABLE_WIKILINKS`
Exact source revision recorded 28 Oct 2026 10:33:29 UTC. It does not establish the source's current position. Latest evidence.
osv · RUSTSEC-2026-0414
PublishedWhen `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](https://github.com/pulldown-cmark/pulldown-cmark/pull/1102) and released in 0.13.5.
- Source published
- 18 Oct 2026 12:00:00 UTC
- Source modified
- 28 Oct 2026 09:00:02 UTC
- Observed here
- 28 Oct 2026 10:33:29 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · OSV · upstream source license applies. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS_V3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H