{"id":"CVE-2021-21306","state":"PUBLISHED","title":"Denial of Service in Marked","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.","publishedAt":"2021-02-08T21:20:18.000Z","updatedAt":"2024-08-03T18:09:15.882Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["markedjs marked"],"affected":[{"vendor":"markedjs","product":"marked","versions":[{"version":">= 1.1.1, < 2.0.0","status":"affected"}]}],"references":["https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96","https://github.com/markedjs/marked/issues/1927","https://github.com/markedjs/marked/pull/1864","https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","https://www.npmjs.com/package/marked"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T19:47:59.168Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/21xxx/CVE-2021-21306.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-21306","state":"PUBLISHED","datePublished":"2021-02-08T21:20:18.000Z","dateUpdated":"2024-08-03T18:09:15.882Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2020-12-22T00:00:00.000Z"},"containers":{"cna":{"title":"Denial of Service in Marked","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"markedjs","product":"marked","versions":[{"version":">= 1.1.1, < 2.0.0","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","description":"{\"CWE-400\":\"Uncontrolled Resource Consumption\"}","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-02-08T21:20:18.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-4r62-v4vq-hr96","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21306","STATE":"PUBLIC","TITLE":"Denial of Service in Marked"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"marked","version":{"version_data":[{"version_value":">= 1.1.1, < 2.0.0"}]}}]},"vendor_name":"markedjs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"{\"CWE-400\":\"Uncontrolled Resource Consumption\"}"}]}]},"references":{"reference_data":[{"name":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96","refsource":"CONFIRM","url":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96"},{"name":"https://github.com/markedjs/marked/issues/1927","refsource":"MISC","url":"https://github.com/markedjs/marked/issues/1927"},{"name":"https://github.com/markedjs/marked/pull/1864","refsource":"MISC","url":"https://github.com/markedjs/marked/pull/1864"},{"name":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","refsource":"MISC","url":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd"},{"name":"https://www.npmjs.com/package/marked","refsource":"MISC","url":"https://www.npmjs.com/package/marked"}]},"source":{"advisory":"GHSA-4r62-v4vq-hr96","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/markedjs/marked/issues/1927","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/markedjs/marked/pull/1864","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.npmjs.com/package/marked","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:09:15.882Z"}}]}}}