GitHub Advisoryadvisory · npm

GHSA-q5mh-72xg-628w pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter

CRITICAL Published 2026-03-25 Modified 2026-03-27 Official page ↗
Aliases
CVE-2026-26830
Ecosystem
npm
Packages
pdf-image
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78, CWE-94
Reviewed
2026-03-27

Affected packages

• npm pdf-image: <= 2.0.0 (no fix yet)

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

Related

Alias · CVE (1)

  • CVE-2026-26830 pdf-image (npm package) through version 2.0.0 allows OS command injection via the pdfFilePath parameter. vulnerability

Weakness · CWE (2)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
  • CWE-94 Improper Control of Generation of Code weakness

References