CVE-2026-26830 pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter
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.
| Package | Affected | Fixed in |
|---|---|---|
pdf-image npm | All versions to 2.0.0 | None |
pdf-image npm | All versions to 2.0.0 | None |
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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-q5mh-72xg-628w.