GHSA-9pcj-m5rr-p28gCriticalCVSS 9.8

textract is vulnerable to OS Command Injection

Published
March 25, 2026
Last Modified
March 31, 2026

🔗 CVE IDs covered (1)

📋 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

🎯 Affected products1

  • npm/textract:<= 2.5.0

🔗 References (8)