{"id":"GHSA-wx77-rp39-c6vg","summary":"Regular Expression Denial of Service in markdown","details":"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.","modified":"2026-09-10T03:49:26.288333410Z","published":"2020-09-04T15:11:03Z","database_specific":{"cwe_ids":["CWE-400"],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:55:21Z","nvd_published_at":null},"references":[{"type":"PACKAGE","url":"https://github.com/evilstreak/markdown-js"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1330"}],"affected":[{"package":{"name":"markdown","ecosystem":"npm","purl":"pkg:npm/markdown"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-wx77-rp39-c6vg/GHSA-wx77-rp39-c6vg.json"}}],"schema_version":"1.9.0"}