Vulnerabilities · 2022 · Marked Project
CVE-2022-21681
Marked Project Marked vulnerability
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.
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/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5 · Patch
- github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgj · Exploit
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A
- nvd.nist.gov/vuln/detail/CVE-2022-21681
- cve.org/CVERecord?id=CVE-2022-21681
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.