Denial of Service in Marked
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-400.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| markedjs | marked | 1.1.1 to before 2.0.0 | 2.0.0 | Patch available | CNA |
| — | marked (npm) | 1.1.1 to before 2.0.0 | 2.0.0 | Patch available | GHSA-4r62-v4vq-hr96 |
- marked Vendormarkedjs Affected 1.1.1 to before 2.0.0 Fixed in 2.0.0 Patch available CNA
- marked (npm) Vendor— Affected 1.1.1 to before 2.0.0 Fixed in 2.0.0 Patch available GHSA-4r62-v4vq-hr96
Remediation
- Fix · CNA marked (markedjs) Fixed in 2.0.0
- Fix · GHSA-4r62-v4vq-hr96 marked (npm) Fixed in 2.0.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 2 products
- OpenShift Service Mesh 2.0
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21306
- 2026-10-03 Alias added: GHSA-4r62-v4vq-hr96
References
Patch 2
More markedjs Marked vulnerabilities
- TI-2026-30197 Marked: OOM Denial of Service via Infinite Recursion in marked Tokenizer CVSS 4.0HIGH 8.7
- TI-2022-06057 Exponential catastrophic backtracking (ReDoS) in marked CVSS 3.1HIGH 7.5
- TI-2022-06056 Cubic catastrophic backtracking (ReDoS) in marked CVSS 3.1HIGH 7.5
- TI-2018-15336 Regular Expression Denial of Service (ReDoS) in markedjs/marked CVSS 4.0MEDIUM 6.9
- TI-2015-07284 The marked package before 0.3.4 for Node.js allows attackers to cause a denial of service… CVSS 3.1HIGH 7.5
- TI-2017-11833 Uncontrolled resource consumption in HackerOne marked node module CVSS 3.0HIGH 7.5
Sources
- CVE-2021-21306 · CVE Program
- CVE-2021-21306 · NVD
- FIRST EPSS
- GHSA-4r62-v4vq-hr96 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-21306 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences