{"id":"GHSA-wx77-rp39-c6vg","aliases":[],"status":"published","title":"Regular Expression Denial of Service in markdown","description":"All versions of `markdown` are vulnerable to Regular Expression Denial of Service (ReDoS). The `markdown.toHTML()` function has significantly degraded performance when parsing long strings containing underscores. This may lead to Denial of Service if the parser accepts user input.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-400"],"published":"2020-09-04T15:11:03Z","modified":"2026-09-10T03:49:26Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"markdown","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"markdown","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1330","tags":["web"]},{"url":"https://github.com/advisories/GHSA-wx77-rp39-c6vg"},{"url":"https://github.com/evilstreak/markdown-js","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-wx77-rp39-c6vg","title":"Regular Expression Denial of Service in markdown","description":"All versions of `markdown` are vulnerable to Regular Expression Denial of Service (ReDoS). The `markdown.toHTML()` function has significantly degraded performance when parsing long strings containing underscores. This may lead to Denial of Service if the parser accepts user input.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T15:11:03Z","modified":"2023-01-09T05:04:24Z","cwes":["CWE-400"],"updated_at":"2026-11-02T14:36:09.554044Z"}],"osv":[{"id":"GHSA-wx77-rp39-c6vg","title":"Regular Expression Denial of Service in markdown","description":"All versions of `markdown` are vulnerable to Regular Expression Denial of Service (ReDoS). The `markdown.toHTML()` function has significantly degraded performance when parsing long strings containing underscores. This may lead to Denial of Service if the parser accepts user input.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T15:11:03Z","modified":"2026-09-10T03:49:26.28833341Z","cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:59.131095Z"}]}}
