GHSA-q5mh-72xg-628w

Suggest an improvement
Source
https://github.com/advisories/GHSA-q5mh-72xg-628w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-q5mh-72xg-628w/GHSA-q5mh-72xg-628w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q5mh-72xg-628w
Aliases
  • CVE-2026-26830
Published
2026-03-25T15:31:29Z
Modified
2026-03-27T18:46:47.027392Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-78",
        "CWE-94"
    ],
    "github_reviewed": true,
    "severity": "CRITICAL",
    "github_reviewed_at": "2026-03-27T18:38:03Z",
    "nvd_published_at": "2026-03-25T15:16:38Z"
}
References

Affected packages

npm / pdf-image

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-q5mh-72xg-628w/GHSA-q5mh-72xg-628w.json"