CVE-2026-26830 Details
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()
A command injection vulnerability has been identified in the pdf-image npm package, affecting all versions through 2.0.0. The issue arises in the index.js file, where user-controlled file paths are interpolated into shell command strings using util.format(). These commands are then executed with child_process.exec(), allowing for arbitrary command execution on the host system.
No fixed version is available as of March 24, 2026. Users are advised to stop passing untrusted file paths into the PDFImage constructor, replace unsafe command execution with argument-safe methods like execFile() or spawn() with an array, and consider using a maintained alternative or a private fork with a fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mooz/node-pdf-image | [email protected] | Product |
| https://github.com/zebbernCVE/CVE-2026-26830 | [email protected] | ExploitThird Party Advisory |
| https://www.npmjs.com/package/pdf-image | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| pdf-image project pdf-image | <= 2.0.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 2, 2026 | Initial Analysis | [email protected] |
| Mar 27, 2026 | CVE Modified | CISA-ADP |
| Mar 25, 2026 | New CVE Received | [email protected] |