{"cve":"CVE-2022-21680","nvd":{"published":"2022-01-14T17:15:13.210","modified":"2026-06-17T04:26:44.973","status":"Modified","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.","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/c4a3ccd344b6929afa8a1d50ac54a721e57012c0","https://github.com/markedjs/marked/releases/tag/v4.0.10","https://github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hf","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AIXDMC3CSHYW3YWVSQOXAWLUYQHAO5UX/","https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0"],"products":["fedoraproject:fedora","marked_project:marked"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-21680","score":0.02852,"percentile":0.8672,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rrrm-qjm4-v8hf","url":"https://osv.dev/vulnerability/GHSA-rrrm-qjm4-v8hf","summary":"Inefficient Regular Expression Complexity in marked","modified":"2026-09-10T03:49:11.241428213Z","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."]}