CVE-2026-141601: Snarkdown through 2.0.0 Denial of Service via Quadratic Link Resolution
Snarkdown through 2.0.0 contains a denial of service vulnerability in parse() in src/index.js that rescans the entire accumulated HTML output for each link. Attackers can supply crafted Markdown with many links or deeply nested '[' brackets to cause quadratic processing time, blocking the JavaScript event loop.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using npm/snarkdown through version 2.0.0 are exposed when they parse attacker-controlled Markdown. The impact is most relevant where parsing occurs on a JavaScript event loop, since crafted input can block it.
What does an attacker need to exploit it?
An attacker only needs to provide crafted Markdown input. Inputs containing many links or deeply nested '[' brackets can trigger quadratic processing during parse().
What is the operational impact?
The issue causes denial of service by consuming excessive processing time and blocking the JavaScript event loop. The provided data does not indicate confidentiality or integrity impact.