Skip to main content
VulnerabilityPublished Updated

CVE-2026-26830: pdf-image · Code Injection

Affects pdf-imageSource CVE Database V5

0

Not known to be exploited · CVSS 9.8 Critical.

Data as of 26 Oct 2026, 13:47 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
2.5% chance of exploitation in 30 days – higher than 84% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
npmpdf-imagepkg:npm/pdf-imageOther threatsAffected
  • <=2.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2026-26830, organizations should immediately audit their software dependencies to identify usage of the pdf-image npm package up to version 2.0.0. If found, upgrade to a patched version once available or replace the package with alternative PDF processing libraries that do not use unsafe shell command execution. Until patches are released, avoid processing untrusted PDF inputs or isolate the processing environment using containerization or sandboxing to limit potential damage. Implement strict input validation and sanitization for any file path parameters to prevent injection. Employ runtime application self-protection (RASP) or host-based intrusion detection systems (HIDS) to monitor for suspicious child_process.exec() calls. Review and restrict Node.js process permissions to minimize impact if exploited. Additionally, monitor security advisories and subscribe to vulnerability feeds for updates on patches or exploit developments. Incorporate secure coding training for developers to avoid unsafe command execution patterns in future projects.

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

References

Community reviews

Loading reviews…