All reports
Critical

pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter

Affected versions

Affected versions
<= 2.0.0
Fixed version
Not reported

Exploitation

CVE-2026-26830

Probability of exploitation in the next 30 days: 2.56%

FIRST EPSS · 2026-11-19

Description

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

Links