{"id":"CVE-2021-21306","published":"2021-02-08T21:20:18Z","modified":"2024-08-03T18:09:15Z","title":"Denial of Service in Marked","vendor":"markedjs","product":"marked","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02492,"percentile":0.85045,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/markedjs/marked/issues/1927","tags":["x_refsource_MISC"]},{"url":"https://github.com/markedjs/marked/pull/1864","tags":["x_refsource_MISC"]},{"url":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/marked","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":17.01},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"markedjs","affectedVersions":[{"vendor":"markedjs","product":"marked","versions":[">= 1.1.1, < 2.0.0"]}],"affected":[{"ecosystem":"npm","package":"marked","vulnerableRanges":[">=1.1.1, <2.0.0"],"patched":["2.0.0"],"from":["GHSA-4r62-v4vq-hr96"],"provenance":"source"}],"summary":{"text":"The marked markdown parser and compiler (npm package \"marked\") contains a regular expression denial-of-service flaw in versions from 1.1.1 up to, but not including, 2.0.0, where crafted input can cause excessive resource consumption. An attacker with network access can trigger it without authentication or user interaction by supplying content that is processed through marked, so it is a concern for any application that runs user-generated content through the parser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:13Z"},"euvd":{"id":"EUVD-2021-0532","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-markedjs-marked-cve-2021-21306","children":[{"from":"CVE-2021-21306","to":"CVE-2022-21680","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/rules.js"],"commits":["https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.57,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2021-21306","to":"CVE-2022-21681","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/rules.js"],"commits":["https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.54,"basis":"same product + CWE + description similarity"}]}]}}