CVE-2021-21306
JSON

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 packageVersionsReported by
markedjs marked>= 1.1.1, < 2.0.0CVE List
marked (npm)from 1.1.1 before 2.0.0GitHub Advisory Database
marked_project markedfrom 1.1.1 before 2.0.0NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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:

NVD (es)

Marked es un analizador y compilador de rebajas de código abierto (paquete npm "marked").&#xa0;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.&#xa0;Esta vulnerabilidad puede afectar a cualquiera que ejecute código generado por el usuario mediante marked.&#xa0;Esta vulnerabilidad se corrigió en la versión 2.0.0

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21306 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-4r62-v4vq-hr96 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-21306 changed 2026-06-17Public domain