npm package report

Is markdown-it-toc-and-anchor safe?

1 known vulnerability, worst severity HIGH.

cvss
7.5

how bad it is if exploited, out of 10

epss
not scored

chance of exploitation in the next 30 days

xyz score
3.9

CyberXYZ composite, out of 10

fig. 01 — GHSA-x6m6-5hrf-fh6r, the advisory selected below

// advisories

GHSA-x6m6-5hrf-fh6r

HIGH

All versions of markdown-it-toc-and-anchor are vulnerable to Denial of Service. Parsing markdown containing text+\n@[toc] causes the application to enter and infinite loop.

Affected
>=0, <4.2.0, < 4.2.0
Fixed in
4.2.0
Weakness
CWE-400
Published
2020-09-01
Source
osv

OSV


// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


Checked 2026-09-22 at 00:46 UTC. The most recent advisory here was published 2020-09-01. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.
Is markdown-it-toc-and-anchor safe? npm package security report | CyberXYZ