{"id":"GHSA-wx77-rp39-c6vg","aliases":["GHSA-wx77-rp39-c6vg"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service in markdown","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-04T15:11:03.000Z","modified":"2026-09-10T03:49:26.288Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected"}],"ecosystem":"npm","package":"markdown","purl":"pkg:npm/markdown","source":"ghsa"}],"references":[{"url":"https://github.com/evilstreak/markdown-js","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1330","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wx77-rp39-c6vg","url":"https://github.com/advisories/GHSA-wx77-rp39-c6vg","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:26.288Z"}],"updatedAt":"2026-11-25T22:56:46.926Z"}