Vulnerability record · CVE-2026-26831 · published 25 March 2026
CVE-2026-26831: Dbashford textract os command injection vulnerability
DDbashford · Textract
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
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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/dbashford/textract | Product |
| https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js | Product |
| https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js | Product |
| https://github.com/dbashford/textract/blob/master/lib/util.js | Product |
| https://github.com/zebbernCVE/CVE-2026-26831 | ExploitThird Party Advisory |
| https://www.npmjs.com/package/textract | Product |
Track CVE-2026-26831 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2026-26831), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.