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

Critical 9.8 Published Updated

Attackers can execute arbitrary OS commands by manipulating the pdfFilePath parameter in the pdf-image npm package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-26830?

CVE-2026-26830 is a critical command injection vulnerability in n/a, published on 25 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-94

Which versions are affected by CVE-2026-26830?

2 open source packages ship an affected version, including pdf-image. It affects 1 product.

PackageAffectedFixed in
pdf-image npmAll versions to 2.0.0None
pdf-image npmAll versions to 2.0.0None

Products include Pdf-Image Project Pdf-Image.

How do I fix CVE-2026-26830?

No fix has been published for CVE-2026-26830 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-26830 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-26830 exists.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-q5mh-72xg-628w.

Is CVE-2026-26830 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free