Vulnerability RUSTSEC-2026-0433

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
5 days ago
October 28, 2026 at 12:00 PM UTC
Quadratic parsing of nested image wikilinks with `ENABLE_WIKILINKS`
0.13.0 - 0.13.5
0.13.0 - 0.13.5

Summary

Quadratic parsing of nested image wikilinks with `ENABLE_WIKILINKS`

Details

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.

Impacted packages

Timeline

Published
5 days ago
October 28, 2026 at 12:00 PM UTC
Fixed (0.13.6)
3 days ago
October 30, 2026 at 08:50 AM UTC
Last Modified
2 hours ago
November 02, 2026 at 11:30 AM UTC