Read the docs
TI-2020-19490 Aliases GHSA-x6m6-5hrf-fh6r

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

Priority LOW 38CWE-400Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Denial of service
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-400.

Summary

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.

Why it matters now

Fix Fixed markdown-it-toc-and-anchor (npm): 4.2.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—markdown-it-toc-and-anchor (npm)before 4.2.04.2.0Patch availableGHSA-x6m6-5hrf-fh6r
  • markdown-it-toc-and-anchor (npm) Vendor— Affected before 4.2.0 Fixed in 4.2.0 Patch available GHSA-x6m6-5hrf-fh6r

Remediation

  • Fix · GHSA-x6m6-5hrf-fh6r markdown-it-toc-and-anchor (npm) Fixed in 4.2.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-x6m6-5hrf-fh6r

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences