mooz/node-pdf-image

mooz/node-pdf-image

Releases4
Frequency2 months 1 week
Last Release
Stars236
Provides an interface to convert PDF's pages to png files in Node.js by using ImageMagick

CVE History

CVEPublishedCVSS v3CVSS v2
9.8 CRITICAL

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()