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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | md-to-pdf | 5.0.0 | GHSA-x949-7cm6-fm6p |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880 x_refsource_MISC
- https://github.com/simonhaenisch/md-to-pdf/issues/99 x_refsource_MISC
- https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a x_refsource_MISC