CVE-2026-26831 textract is vulnerable to OS Command Injection
CriticalCVSS 9.8
EPSS 2.8%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
Description
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
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| dbashford textract | <= 2.5.0 | after 2.5.0 | Fixed |
| npm textract(npm) | <= 2.5.0 | after 2.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm textract(npm) | <= 2.5.0 | No fix listed |
| dbashford textract | <= 2.5.0 | No fix listed |
References
- www.npmjs.com product
- github.com product
- github.com product
- github.com product
- github.com product
- github.com exploit third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com