PT-2026-27783 · Npm · Pdf-Image

Zebbern

·

Published

2026-03-25

·

Updated

2026-03-28

·

CVE-2026-26830

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions pdf-image versions through 2.0.0
Description The pdf-image npm package versions through 2.0.0 allows for OS command injection via the pdfFilePath parameter. The constructGetInfoCommand and constructConvertCommandForPage functions utilize util.format() to incorporate user-supplied file paths into shell command strings, which are then executed using child process.exec(). This allows for remote code execution.
Recommendations Versions prior to 2.0.1 should be used. As a temporary workaround, avoid using the pdfFilePath parameter until a patch is available.

Exploit

Fix

RCE

OS Command Injection

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2026-26830
GHSA-Q5MH-72XG-628W

Affected Products

Pdf-Image