Advisory

GHSA-x6m6-5hrf-fh6r

Also known as: None

Summary

Denial of Service in markdown-it-toc-and-anchor

Details

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.

Recommendation

No fix is currently available. Consider using an alternative module until a fix is made available.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-01 21:26 UTC
Modified
2023-12-07 22:05 UTC

Affected packages and fixes

markdown-it-toc-and-anchor

npm · All systems

Affected

  • introduced 0, fixed 4.2.0 (semver)

Fixed versions

4.2.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences