Critical severity9.8NVD Advisory· Published Dec 10, 2021· Updated Jun 17, 2026
CVE-2021-23639
CVE-2021-23639
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
md-to-pdfnpm | < 5.0.0 | 5.0.0 |
Affected products
3- Range: unspecified
- cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:*Range: <5.0.0
Patches
Vulnerability mechanics
References
5- github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8anvdPatchThird Party AdvisoryWEB
- github.com/simonhaenisch/md-to-pdf/issues/99nvdExploitIssue TrackingPatchThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-JS-MDTOPDF-1657880nvdExploitPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-x949-7cm6-fm6pghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-23639ghsaADVISORY
News mentions
0No linked articles in our index yet.