CVE-2022-21681 Exponential catastrophic backtracking (ReDoS) in marked
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression inline.reflinkSearch may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). 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.
Upgrade path
15 packages: 5 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-marked(Ubuntu 16.04) | = 0.3.2+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/node-marked(Ubuntu 18.04) | = 0.3.6+dfsg-1; = 0.3.9+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/node-marked(Ubuntu 20.04) | = 0.5.1+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/node-marked(Ubuntu 22.04) | = 0.8.0+ds+repack-2; = 0.8.0+ds+repack-3; = 4.0.5+ds-5; = 4.0.9+ds+~4.0.1-2 +4 more | No fix listed | No fix yet |
| ubuntu/node-marked(Ubuntu 24.04) | = 4.2.3+ds+~4.0.7-2ubuntu1; = 4.2.3+ds+~4.0.7-3; All versions | No fix listed | No fix yet |
| ubuntu/node-marked(Ubuntu 25.10) | = 4.2.3+ds+~4.0.7-3; = 4.2.3+ds+~4.0.7-4; All versions | No fix listed | No fix yet |
| ubuntu/node-marked(Ubuntu 26.04) | = 4.2.3+ds+~4.0.7-4; All versions | No fix listed | No fix yet |
| ubuntu/node-marked(Ubuntu 26.10) | = 4.2.3+ds+~4.0.7-4; = 4.3.0+ds1+~cs10.2.23-1; = 18.0.5+~cs7.2.17-2; = 18.0.6+~cs7.2.17-1 +2 more | No fix listed | No fix yet |
| debian/node-marked(Debian 12) | < 4.0.12+ds+~4.0.1-1 | 4.0.12+ds+~4.0.1-1 | Fixed |
| debian/node-marked(Debian 13) | < 4.0.12+ds+~4.0.1-1 | 4.0.12+ds+~4.0.1-1 | Fixed |
| debian/node-marked(Debian 14) | < 4.0.12+ds+~4.0.1-1 | 4.0.12+ds+~4.0.1-1 | Fixed |
| marked project marked | < 4.0.10 | 4.0.10 | Fixed |
| npm marked(npm) | < 4.0.10 | 4.0.10 | Fixed |
| fedoraproject fedora | = 36 | No fix listed | Versions listed |
| markedjs marked | = < 4.0.10 | No fix listed | Versions listed |
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 |
| ubuntu/node-marked(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/node-marked(Ubuntu:16.04) | = 0.3.2+dfsg-1 | No fix listed |
| ubuntu/node-marked(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/node-marked(Ubuntu:18.04) | = 0.3.6+dfsg-1 | No fix listed |
| ubuntu/node-marked(Ubuntu:18.04) | = 0.3.9+dfsg-1 | No fix listed |
| ubuntu/node-marked(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/node-marked(Ubuntu:20.04) | = 0.5.1+dfsg-1 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | = 0.8.0+ds+repack-2 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | = 0.8.0+ds+repack-3 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | = 4.0.5+ds-5 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | = 4.0.9+ds+~4.0.1-2 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | = 4.0.12+ds+~4.0.1-1 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | = 4.0.12+ds+~4.0.1-2ubuntu1 | No fix listed |
| ubuntu/node-marked(Ubuntu:22.04) | = 4.0.12+ds+~4.0.1-2ubuntu2 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/node-marked(Ubuntu:24.04) | = 4.2.3+ds+~4.0.7-2ubuntu1 | No fix listed |
| ubuntu/node-marked(Ubuntu:24.04) | = 4.2.3+ds+~4.0.7-3 | No fix listed |
| ubuntu/node-marked(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-marked(Ubuntu:25.10) | = 4.2.3+ds+~4.0.7-3 | No fix listed |
| ubuntu/node-marked(Ubuntu:25.10) | = 4.2.3+ds+~4.0.7-4 | No fix listed |
| ubuntu/node-marked(Ubuntu:26.10) | = 4.2.3+ds+~4.0.7-4 | No fix listed |
| ubuntu/node-marked(Ubuntu:26.10) | = 4.3.0+ds1+~cs10.2.23-1 | No fix listed |
| ubuntu/node-marked(Ubuntu:26.10) | = 18.0.5+~cs7.2.17-2 | No fix listed |
| ubuntu/node-marked(Ubuntu:26.10) | = 18.0.6+~cs7.2.17-1 | No fix listed |
| ubuntu/node-marked(Ubuntu:26.10) | = 18.0.6+~cs7.2.17-2 | No fix listed |
| ubuntu/node-marked(Ubuntu:26.04) | = 4.2.3+ds+~4.0.7-4 | No fix listed |
References
- github.com exploit issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- lists.fedoraproject.org
- github.com patch
- github.com
- Debian Security Tracker CVE-2022-21681 vendor-advisory
- FEDORA-2022-784d729f30 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- github.com product