textract through 2.5.0 is vulnerable to OS Command Injection via the file path parameter…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | textract (npm) | up to 2.5.0 | — | No fix listed | GHSA-9pcj-m5rr-p28g |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- textract (npm) Vendor— Affected up to 2.5.0 Fixed in — No fix listed GHSA-9pcj-m5rr-p28g
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-26831
- 2026-10-03 Alias added: GHSA-9pcj-m5rr-p28g
References
Sources
- CVE-2026-26831 · CVE Program
- CVE-2026-26831 · NVD
- FIRST EPSS
- GHSA-9pcj-m5rr-p28g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences