textract is vulnerable to OS Command Injection
Critical severity
GitHub Reviewed
Published
Mar 25, 2026
to the GitHub Advisory Database
•
Updated Mar 31, 2026
Description
Published by the National Vulnerability Database
Mar 25, 2026
Published to the GitHub Advisory Database
Mar 25, 2026
Reviewed
Mar 31, 2026
Last updated
Mar 31, 2026
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
References