# GHSA-wx77-rp39-c6vg: Regular Expression Denial of Service in markdown

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T15:11:03.000Z
- Modified: 2026-09-10T03:49:26.288Z
- Weaknesses: CWE-400

## 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.


## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- markdown (npm): from 0.0.0

## References

- <https://github.com/evilstreak/markdown-js> (package)
- <https://www.npmjs.com/advisories/1330> (web)

## Sources

- GitHub Advisory Database: [GHSA-wx77-rp39-c6vg](https://github.com/advisories/GHSA-wx77-rp39-c6vg), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-wx77-rp39-c6vg · Whole record: https://cve.day/GHSA-wx77-rp39-c6vg.json · Rebuilt by cve.day 2026-11-25T22:56:46.926Z
