CVE-2021-21306Marked Project Marked
High 7.5 No auth needed
Follow: this CVE · Marked Project · Marked Project Marked We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.5% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Feb 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Marked.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | marked |
≥ 1.1.1 < 2.0.0 |
2.0.0 |
npm install marked@2.0.0 |
Per OSV / GitHub Advisories (GHSA-4r62-v4vq-hr96). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| marked_project | marked | ≥ 1.1.1 < 2.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- www.npmjs.com Product Third Party Advisory