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
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- https://github.com/dbashford/textractProduct
- https://github.com/dbashford/textract/blob/master/lib/extractors/doc.jsProduct
- https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.jsProduct
- https://github.com/dbashford/textract/blob/master/lib/util.jsProduct
- https://github.com/zebbernCVE/CVE-2026-26831Exploit, Third Party Advisory
- https://www.npmjs.com/package/textractProduct
Timeline
- Published
- Mar 25, 2026
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed