markdown-it
15.0.3 · 16 Oct 2026MIT41.9M / weekRepositoryHomepagenpmAtom feed
In short
1 security3 changed
- Security
Fix quadratic parse time for some combinations of pairs, #583. Algorithm is now similar to one in reference implementation.
Security
5 advisories affect 10.0.0; 14.3.3 fixes them
- Highmarkdown-it: Quadratic complexity in smartquotes with unmatched closing quotesGHSA-r7fv-28h4-cvq7 · 20 Oct 2026Fixed in 14.3.2
- Moderatemarkdown-it linkify: true has two quadratic paths, so a few hundred KB of markdown blocks the event loop for tens of secondsGHSA-253c-mchw-3w2r · 29 Sep 2026Fixed in 14.3.1
- Moderatemarkdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operationsGHSA-6v5v-wf23-fmfq · 15 Jun 2026Fixed in 14.2.0
- ModerateUncontrolled Resource Consumption in markdown-itGHSA-6vfc-qv3f-vr6c · 12 Jan 2022Fixed in 12.3.2
- Lowmarkdown-it: Quadratic-time denial of service in inline HTML parsing with html enabledGHSA-vfgh-jcmw-g37q · 20 Oct 2026Fixed in 14.3.3
Release note
Security
- Security
Fix quadratic parse time for some combinations of pairs, #583. Algorithm is
now similar to one in reference implementation.
Changed
Minor internal structs change, to make pairs parse more effective (cost is
linear now). If you use external "pairs" extensions, you need sync those with
"official ones". Without update, old code will work, but can cause invalid
result in rare case. This is the only reason of major version bump. With high probability you don't need to change your code, only update version dependency.Updated changelog format.
Deps bump.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.