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.
CVSS 3.1CRITICAL 9.8·Network·No auth·No interaction·EPSS 0.05413·Published 2021-12-10·Fixed in 5.0.0CWE-94