CVE-2022-21680 Cubic catastrophic backtracking (ReDoS) in marked
HighCVSS 7.5
EPSS 3.0%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression block.def may cause catastrophic backtracking against some strings and lead to a regular expression denial of service (ReDoS). Anyone who runs untrusted markdown through a vulnerable version of marked and does not use a worker with a time limit may be affected. This issue is patched in version 4.0.10. As a workaround, avoid running untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm marked(npm) | < 4.0.10 | 4.0.10 |
| markedjs marked | = < 4.0.10 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | All versions | No fix listed |
| marked project marked | < 4.0.10 | 4.0.10 |
| fedoraproject fedora | = 36 | No fix listed |
| ubuntu/node-marked(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-marked(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-marked(Ubuntu:26.10) | All versions | No fix listed |
| debian/node-marked(Debian:12) | < 4.0.12+ds+~4.0.1-1 | 4.0.12+ds+~4.0.1-1 |
| debian/node-marked(Debian:14) | < 4.0.12+ds+~4.0.1-1 | 4.0.12+ds+~4.0.1-1 |
| debian/node-marked(Debian:13) | < 4.0.12+ds+~4.0.1-1 | 4.0.12+ds+~4.0.1-1 |
References
- github.com exploit third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory
- github.com patch third-party-advisory
- github.com release-notes third-party-advisory
- lists.fedoraproject.org
- github.com
- Debian Security Tracker CVE-2022-21680 vendor-advisory
- FEDORA-2022-784d729f30 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org