Advisory

GHSA-q5mh-72xg-628w

Also known as: CVE-2026-26830

Summary

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

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-03-25 15:31 UTC
Modified
2026-03-27 18:56 UTC

Affected packages and fixes

pdf-image

npm · All systems

Affected

  • introduced 0, last affected 2.0.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences