Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2026-26830 EUVD-2026-15457GHSA-q5mh-72xg-628w

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

Published Mar 25, 2026 · Updated Mar 27, 2026 · Assigned by mitre

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

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm pdf-image <= 2.0.0 — GHSA-q5mh-72xg-628w

References