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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.49%, higher than 85% of CVEs (2026-12-01)
- Published: 2021-02-08T21:17:58.000Z
- Modified: 2026-09-10T03:49:13.926Z
- Also known as: GHSA-4r62-v4vq-hr96
- Weaknesses: CWE-400
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- markedjs marked: >= 1.1.1, < 2.0.0
- marked (npm): from 1.1.1 before 2.0.0
- marked_project marked: from 1.1.1 before 2.0.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

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

## Sources

- CVE List: [CVE-2021-21306](https://www.cve.org/CVERecord?id=CVE-2021-21306), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4r62-v4vq-hr96](https://github.com/advisories/GHSA-4r62-v4vq-hr96), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21306](https://nvd.nist.gov/vuln/detail/CVE-2021-21306), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21306 · Whole record: https://cve.day/CVE-2021-21306.json · Rebuilt by cve.day 2026-11-25T22:57:59.850Z
