Skip to content

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

High severity GitHub Reviewed Published Sep 1, 2020 to the GitHub Advisory Database • Updated Dec 7, 2023

Package

npm markdown-it-toc-and-anchor (npm)

Affected versions

< 4.2.0

Patched versions

4.2.0

Description

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.

References

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 1, 2020
Last updated Dec 7, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-x6m6-5hrf-fh6r

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.