GHSA-x6m6-5hrf-fh6r

Suggest an improvement
Source
https://github.com/advisories/GHSA-x6m6-5hrf-fh6r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-x6m6-5hrf-fh6r/GHSA-x6m6-5hrf-fh6r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x6m6-5hrf-fh6r
Published
2020-09-01T21:26:50Z
Modified
2023-12-07T22:05:03Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:34:25Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / markdown-it-toc-and-anchor

Package

Name
markdown-it-toc-and-anchor
View open source insights on deps.dev
Purl
pkg:npm/markdown-it-toc-and-anchor

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-x6m6-5hrf-fh6r/GHSA-x6m6-5hrf-fh6r.json"