GHSA-9pcj-m5rr-p28g

Suggest an improvement
Source
https://github.com/advisories/GHSA-9pcj-m5rr-p28g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-9pcj-m5rr-p28g/GHSA-9pcj-m5rr-p28g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9pcj-m5rr-p28g
Aliases
Published
2026-03-25T18:31:47Z
Modified
2026-03-31T23:41:23Z
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
textract is vulnerable to OS Command Injection
Details

textract through 2.5.0 is vulnerable to OS Command Injection via the file path parameter in multiple extractors. When processing files with malicious filenames, the filePath is passed directly to child_process.exec() in lib/extractors/doc.js, rtf.js, dxf.js, images.js, and lib/util.js with inadequate sanitization

Database specific
{
    "cwe_ids":  [
        "CWE-78",
        "CWE-94"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-31T23:24:42Z",
    "nvd_published_at":  "2026-03-25T16:16:21Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / textract

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-9pcj-m5rr-p28g/GHSA-9pcj-m5rr-p28g.json"