CVE-2021-21306
mediumpriority · track · 31EPSS 0.025 · 84 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-4r62-v4vq-hr96Regular Expression Denial of Service (REDoS) in Marked2021-02-08ghsa · osvUS
### Impact _What kind of vulnerability is it? Who is impacted?_ [Regular expression Denial of Service](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) A Denial of Service attack can affect anyone who runs user generated code through `marked`. ### Patches _Has the problem been patched? What versions should users upgrade to?_ patched in v2.0.0 ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ None. ### References _Are there any links users can visit to find out more?_ https://github.com/markedjs/marked/issues/1927 https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS ### For more information If you have any questions or comments about this advisory: * Open an issue in [marked](https://github.com/markedjs/marked/issues)
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccdcnnvd
- https://github.com/markedjs/marked/issues/1927cnnvd
- https://github.com/markedjs/marked/pull/1864cnnvd
- https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-21306cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021050404cnnvd
- https://www.npmjs.com/package/markedcnnvd
- https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccdenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan