pdf-image (npm package) through version 2.0.0 allows OS command injection via the pdfFilePath parameter. The constructGetInfoCommand and constructConvertCommandForPage functions use util.format() to interpolate user-controlled file paths into shell command strings that are executed via child_process.exec().
{
"cwe_ids": [
"CWE-78",
"CWE-94"
],
"github_reviewed": true,
"severity": "CRITICAL",
"github_reviewed_at": "2026-03-27T18:38:03Z",
"nvd_published_at": "2026-03-25T15:16:38Z"
}