{"id":"GHSA-x6m6-5hrf-fh6r","aliases":[],"status":"published","title":"Denial of Service in markdown-it-toc-and-anchor","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2020-09-01T21:26:50Z","modified":"2023-12-07T22:05:04Z","fixes":[{"ecosystem":"npm","package":"markdown-it-toc-and-anchor","fixed_in":["4.2.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"markdown-it-toc-and-anchor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.0"}]}]},{"source":"osv","ecosystem":"npm","package":"markdown-it-toc-and-anchor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.2.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/749","tags":["web"]},{"url":"https://github.com/medfreeman/markdown-it-toc-and-anchor","tags":["package"]},{"url":"https://snyk.io/vuln/SNYK-JS-MARKDOWNITTOCANDANCHOR-73500","tags":["web"]},{"url":"https://github.com/advisories/GHSA-x6m6-5hrf-fh6r"}],"sources":{"ghsa":[{"id":"GHSA-x6m6-5hrf-fh6r","title":"Denial of Service in markdown-it-toc-and-anchor","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","status":"published","published":"2020-09-01T21:26:50Z","modified":"2023-12-07T22:05:04Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:37:24.593982Z"}],"osv":[{"id":"GHSA-x6m6-5hrf-fh6r","title":"Denial of Service in markdown-it-toc-and-anchor","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","status":"published","published":"2020-09-01T21:26:50Z","modified":"2023-12-07T22:05:03Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:59.484835Z"}]}}
