CVE-2026-26830
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by mitre
Exploit likelihood
2.74% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-q5mh-72xg-628w

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
pdf-image (npm)up to 2.0.0GitHub Advisory Database
pdf-image_project pdf-imageup to 2.0.0NVD

All scores

mitre9.8critical CVSS:3.1CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78CWE-94

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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

GitHub Advisory Database

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

NVD (es)

pdf-image (paquete npm) hasta la versión 2.0.0 permite la inyección de comandos del sistema operativo a través del parámetro pdfFilePath. Las funciones constructGetInfoCommand y constructConvertCommandForPage usan util.format() para interpolar rutas de archivo controladas por el usuario en cadenas de comandos de shell que se ejecutan a través de child_process.exec().

References

Sources

SourceRecordLicence
CVE ListCVE-2026-26830 changed 2026-03-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-q5mh-72xg-628w changed 2026-03-27CC-BY-4.0
NVDCVE-2026-26830 changed 2026-06-17Public domain