Vulnerabilities · 2022 · Marked Project
CVE-2022-21680
Marked Project Marked vulnerability
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
Marked, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Marked Project Marked runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0 · Patch
- github.com/markedjs/marked/releases/tag/v4.0.10 · Third Party Advisory
- github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hf · Exploit
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A
- nvd.nist.gov/vuln/detail/CVE-2022-21680
- cve.org/CVERecord?id=CVE-2022-21680
More vulnerabilities in Marked Project products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.