{"cve":"CVE-2022-21681","nvd":{"published":"2022-01-14T17:15:13.270","modified":"2026-06-17T04:26:45.093","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333","CWE-400"],"references":["https://github.com/markedjs/marked/commit/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5","https://github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgj","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AIXDMC3CSHYW3YWVSQOXAWLUYQHAO5UX/","https://github.com/markedjs/marked/commit/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5","https://github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgj"],"products":["fedoraproject:fedora","marked_project:marked"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-21681","score":0.02766,"percentile":0.86301,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5v2h-r2cx-5xgj","url":"https://osv.dev/vulnerability/GHSA-5v2h-r2cx-5xgj","summary":"Inefficient Regular Expression Complexity in marked","modified":"2026-09-10T03:49:10.576912241Z","packages":[{"ecosystem":"npm","name":"marked","purl":"pkg:npm/marked","ranges":["<4.0.10"],"fixed":["4.0.10"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}