Vulnerability · Published Feb 8, 2021 · Assigned by GitHub_M

CVE-2021-21306Denial of Service in Marked

Medium 5.3

In plain English

A medium-severity uncontrolled resource consumption in marked from markedjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)2.5%top 15.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmarked2.0.0GHSA-4r62-v4vq-hr96

Affected products (as reported)

VendorProductVersions
markedjs marked >= 1.1.1, < 2.0.0

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References