CVE-2026-26831
textract through 2.5.0 is vulnerable to OS Command Injection via …
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
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/dbashford/textract
- github.com/dbashford/textract/blob/master/lib/extractors/doc.js
- github.com/dbashford/textract/blob/master/lib/extractors/rtf.js
- github.com/dbashford/textract/blob/master/lib/util.js
- github.com/zebbernCVE/CVE-2026-26831
- www.npmjs.com/package/textract
- nvd.nist.gov/vuln/detail/CVE-2026-26831
- github.com/advisories/GHSA-9pcj-m5rr-p28g
- nvd.nist.gov/vuln/detail/CVE-2026-26831
- cve.org/CVERecord?id=CVE-2026-26831
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.