{"id":"CVE-2021-21306","aliases":["GHSA-4r62-v4vq-hr96"],"summary":"Denial of Service in Marked","published_at":"2021-02-08T00:00:00Z","modified_at":"2026-09-10T03:49:13.926993Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.02491999976336956,"percentile":0.8500400185585022,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"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_stack":[],"affected_other":[{"ecosystem":"CVE","package":"markedjs/marked","versions":[">= 1.1.1, < 2.0.0"],"provider":"cvelistv5","source":"CVE-2021-21306","relation":"self"},{"ecosystem":"NVD","package":"marked_project:marked","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.1.1"},{"fixed":"2.0.0"}]}],"fixed":["2.0.0"],"provider":"nvd","source":"CVE-2021-21306","relation":"self"},{"ecosystem":"TuxCare:npm","package":"marked","purl":"pkg:npm/marked","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.7-tuxcare.0"},{"fixed":"1.2.7-tuxcare.1"}]}],"versions":["1.2.7"],"fixed":["1.2.7-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1784769550","relation":"upstream"},{"ecosystem":"npm","package":"marked","purl":"pkg:npm/marked","ranges":[{"type":"SEMVER","events":[{"introduced":"1.1.1"},{"fixed":"2.0.0"}]}],"fixed":["2.0.0"],"provider":"osv","source":"GHSA-4r62-v4vq-hr96","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"not_affected","packages":["servicemesh-grafana","servicemesh-grafana-prometheus"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-21306"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-21306"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1784769550","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1784769550","published_at":"2026-08-04T14:52:47Z","modified_at":"2026-10-15T09:47:36.886842Z","summary":"TuxCare security update for marked (3 CVEs)","details":"TuxCare rebuilt marked to address 3 CVEs. Fixed in 1.2.7-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"marked","purl":"pkg:npm/marked","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.7-tuxcare.0"},{"fixed":"1.2.7-tuxcare.1"}]}],"versions":["1.2.7"],"fixed":["1.2.7-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1784769550","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2021-21306","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-21306","license":"CC-BY-4.0","published_at":"2021-02-08T21:20:18Z","modified_at":"2024-08-03T18:09:15.882Z","summary":"Denial of Service in Marked","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CVE-2021-21306"}],"affected":[{"ecosystem":"CVE","package":"markedjs/marked","versions":[">= 1.1.1, < 2.0.0"],"provider":"cvelistv5","source":"CVE-2021-21306","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96"},{"type":"WEB","url":"https://github.com/markedjs/marked/issues/1927"},{"type":"WEB","url":"https://github.com/markedjs/marked/pull/1864"},{"type":"WEB","url":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd"},{"type":"WEB","url":"https://www.npmjs.com/package/marked"}]},{"provider":"nvd","source_id":"CVE-2021-21306","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21306","severity":[],"affected":[{"ecosystem":"NVD","package":"marked_project:marked","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.1.1"},{"fixed":"2.0.0"}]}],"fixed":["2.0.0"],"provider":"nvd","source":"CVE-2021-21306","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-4r62-v4vq-hr96","relation":"self","url":"https://osv.dev/vulnerability/GHSA-4r62-v4vq-hr96","license":"CC-BY-4.0","published_at":"2021-02-08T21:17:58Z","modified_at":"2026-09-10T03:49:13.926993Z","summary":"Regular Expression Denial of Service (REDoS) in Marked","details":"### 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)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GHSA-4r62-v4vq-hr96"}],"affected":[{"ecosystem":"npm","package":"marked","purl":"pkg:npm/marked","ranges":[{"type":"SEMVER","events":[{"introduced":"1.1.1"},{"fixed":"2.0.0"}]}],"fixed":["2.0.0"],"provider":"osv","source":"GHSA-4r62-v4vq-hr96","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21306"},{"type":"WEB","url":"https://github.com/markedjs/marked/issues/1927"},{"type":"WEB","url":"https://github.com/markedjs/marked/pull/1864"},{"type":"WEB","url":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd"},{"type":"WEB","url":"https://www.npmjs.com/package/marked"}]},{"provider":"redhat-vex","source_id":"CVE-2021-21306","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-21306","license":"CC-BY-4.0","published_at":"2021-02-08T00:00:00Z","modified_at":"2023-08-31T08:58:38Z","summary":"nodejs-marked: Regular expression denial of service","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2021-21306"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-21306"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"not_affected","packages":["servicemesh-grafana","servicemesh-grafana-prometheus"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-21306"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-21306"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-21306.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-21306"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1926866"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-21306"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21306"}]}],"references":[{"type":"WEB","url":"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96"},{"type":"WEB","url":"https://github.com/markedjs/marked/issues/1927"},{"type":"WEB","url":"https://github.com/markedjs/marked/pull/1864"},{"type":"WEB","url":"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd"},{"type":"WEB","url":"https://www.npmjs.com/package/marked"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21306"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-21306.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-21306"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1926866"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-21306"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1784769550","url":"https://osv.dev/vulnerability/CLSA-2026-1784769550","modified_at":"2026-10-15T09:47:36.886842Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2021-21306","url":"https://www.cve.org/CVERecord?id=CVE-2021-21306","license":"CC-BY-4.0","modified_at":"2024-08-03T18:09:15.882Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-21306","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21306","relation":"self"},{"provider":"osv","source_id":"GHSA-4r62-v4vq-hr96","url":"https://osv.dev/vulnerability/GHSA-4r62-v4vq-hr96","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:13.926993Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-21306","url":"https://access.redhat.com/security/cve/CVE-2021-21306","license":"CC-BY-4.0","modified_at":"2023-08-31T08:58:38Z","relation":"self"}]}
