# CVE-2021-21306: Denial of Service in Marked

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-02-08 · Modified: 2024-08-03
- Aliases: GHSA-4r62-v4vq-hr96
- Record: https://cvemate.com/vulnerability/CVE-2021-21306 · JSON: https://cvemate.com/vulnerability/CVE-2021-21306/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.492%, percentile 85.185%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- marked\_project marked: ≥ 1.1.1, \< 2.0.0
- markedjs marked: ≥ 1.1.1, \< 2.0.0
- Npm marked (Npm): ≥ 1.1.1, \< 2.0.0

## References

- <https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96>
- <https://github.com/markedjs/marked/issues/1927>
- <https://github.com/markedjs/marked/pull/1864>
- <https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd>
- <https://www.npmjs.com/package/marked>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21306>

---

Data as of 2026-12-05T06:19:49.869Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
