{"cve":"CVE-2021-21306","nvd":{"published":"2021-02-08T22:15:12.450","modified":"2026-06-17T03:35:15.567","status":"Modified","description":"Marked is an open-source markdown parser and compiler (npm package \"marked\"). In marked from version 1.1.1 and before version 2.0.0, there is a Regular expression Denial of Service vulnerability. This vulnerability can affect anyone who runs user generated code through marked. This vulnerability is fixed in version 2.0.0.","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-400"],"references":["https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","https://github.com/markedjs/marked/issues/1927","https://github.com/markedjs/marked/pull/1864","https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96","https://www.npmjs.com/package/marked"],"products":["marked_project:marked"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-21306","score":0.02462,"percentile":0.84459,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-4r62-v4vq-hr96","url":"https://osv.dev/vulnerability/GHSA-4r62-v4vq-hr96","summary":"Regular Expression Denial of Service (REDoS) in Marked","modified":"2026-09-10T03:49:13.926993251Z","packages":[{"ecosystem":"npm","name":"marked","purl":"pkg:npm/marked","ranges":[">=1.1.1 <2.0.0"],"fixed":["2.0.0"]}]}],"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."]}