{"id":"CVE-2021-21306","aliases":["CVE-2021-21306","GHSA-4r62-v4vq-hr96"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service in Marked","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\n[Regular expression Denial of Service](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n\nA Denial of Service attack can affect anyone who runs user generated code through `marked`.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\npatched in v2.0.0\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nNone.\n\n### References\n_Are there any links users can visit to find out more?_\n\nhttps://github.com/markedjs/marked/issues/1927\nhttps://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [marked](https://github.com/markedjs/marked/issues)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Marked es un analizador y compilador de rebajas de código abierto (paquete npm \"marked\").&#xa0;En marked desde la versión 1.1.1 y anteriores a versión 2.0.0, se presenta una vulnerabilidad de Denegación de Servicio de expresión Regular.&#xa0;Esta vulnerabilidad puede afectar a cualquiera que ejecute código generado por el usuario mediante marked.&#xa0;Esta vulnerabilidad se corrigió en la versión 2.0.0","source":"nvd"}],"published":"2021-02-08T21:17:58.000Z","modified":"2026-09-10T03:49:13.926Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":">= 1.1.1, < 2.0.0","status":"affected"}],"vendor":"markedjs","product":"marked","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.1.1","status":"affected","fixed":"2.0.0"}],"ecosystem":"npm","package":"marked","purl":"pkg:npm/marked","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.1.1","fixed":"2.0.0"}],"vendor":"marked_project","product":"marked","cpe":"cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/markedjs/marked/issues/1927","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/markedjs/marked/pull/1864","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/marked","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21306","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21306","url":"https://www.cve.org/CVERecord?id=CVE-2021-21306","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.882Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4r62-v4vq-hr96","url":"https://github.com/advisories/GHSA-4r62-v4vq-hr96","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:13.926Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21306","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21306","licence":"Public domain","modified":"2026-06-17T03:35:15.567Z"}],"updatedAt":"2026-11-25T22:57:59.850Z","epss":{"score":0.02492,"percentile":0.851,"date":"2026-12-01T12:00:22.000Z"}}