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.
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:markdown_to_pdf_project:markdown_to_pdf:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "5.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a716259c548c82fa1d3b14a3422e9100619d2d8a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}