Medium severity5.3NVD Advisory· Published Feb 8, 2021· Updated Jun 17, 2026
CVE-2021-21306
CVE-2021-21306
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
markednpm | >= 1.1.1, < 2.0.0 | 2.0.0 |
Affected products
3cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*+ 1 more
- cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*range: >=1.1.1,<2.0.0
- (no CPE)range: >= 1.1.1, < 2.0.0
Patches
Vulnerability mechanics
References
7- github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccdnvdPatchThird Party AdvisoryWEB
- github.com/markedjs/marked/pull/1864nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-4r62-v4vq-hr96ghsaADVISORY
- github.com/markedjs/marked/issues/1927nvdThird Party AdvisoryWEB
- github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-21306ghsaADVISORY
- www.npmjs.com/package/markednvdProductThird Party AdvisoryWEB
News mentions
0No linked articles in our index yet.