5.3medium
Denial of Service in Marked
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.49% (higher than 85% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4r62-v4vq-hr96
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| markedjs marked | >= 1.1.1, < 2.0.0 | CVE List |
| marked (npm) | from 1.1.1 before 2.0.0 | GitHub Advisory Database |
| marked_project marked | from 1.1.1 before 2.0.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
What kind of vulnerability is it? Who is impacted?
Regular expression Denial of Service
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
NVD (es)
Marked es un analizador y compilador de rebajas de código abierto (paquete npm "marked"). En marked desde la versión 1.1.1 y anteriores a versión 2.0.0, se presenta una vulnerabilidad de Denegación de Servicio de expresión Regular. Esta vulnerabilidad puede afectar a cualquiera que ejecute código generado por el usuario mediante marked. Esta vulnerabilidad se corrigió en la versión 2.0.0
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21306 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4r62-v4vq-hr96 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-21306 changed 2026-06-17 | Public domain |