{"id":"GHSA-x6m6-5hrf-fh6r","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","modified":"2023-12-07T22:05:03Z","published":"2020-09-01T21:26:50Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:34:25Z","nvd_published_at":null,"cwe_ids":["CWE-400"]},"references":[{"type":"PACKAGE","url":"https://github.com/medfreeman/markdown-it-toc-and-anchor"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITTOCANDANCHOR-73500"},{"type":"WEB","url":"https://www.npmjs.com/advisories/749"}],"affected":[{"package":{"name":"markdown-it-toc-and-anchor","ecosystem":"npm","purl":"pkg:npm/markdown-it-toc-and-anchor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}