Back
CVE-2021-23639Remote Code Execution (RCE)
- 9.8CriticalCVSS base score
- 5.4%Exploitation in 30 daysEPSS · top 7.2% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By snyk
- 11 months later
· 11 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 5.4% · top 7.2% of all CVEs (16 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
md-to-pdf
- affected unspecified – < 5.0.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmmd-to-pdfGHSA-x949-7cm6-fm6p (opens in a new tab)
References
References3
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/simonhaenisch/md-to-pdf/issues/99 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8a (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-2610 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-x949-7cm6-fm6p (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-23639)Record last updated .