Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pdf-image
  4. ›
  5. CVE-2026-26830

CVE-2026-26830: pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter

March 25, 2026 (updated March 27, 2026)

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

References

  • github.com/advisories/GHSA-q5mh-72xg-628w
  • github.com/mooz/node-pdf-image
  • github.com/zebbernCVE/CVE-2026-26830
  • nvd.nist.gov/vuln/detail/CVE-2026-26830

Code Behaviors & Features

Detect and mitigate CVE-2026-26830 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 2.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/pdf-image/CVE-2026-26830.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:41 +0000.