Vulnerability · Published Dec 10, 2021 · Assigned by snyk

CVE-2021-23639Remote Code Execution (RCE)

Critical 9.8

In plain English

A critical-severity security flaw in md-to-pdf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.4% (higher than 93% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)5.4%top 7.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

The package md-to-pdf before 5.0.0 are vulnerable to Remote Code Execution (RCE) due to utilizing the library gray-matter to parse front matter content, without disabling the JS engine.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmd-to-pdf5.0.0GHSA-x949-7cm6-fm6p

Affected products (as reported)

VendorProductVersions
n/a md-to-pdf unspecified – before 5.0.0

References