CVE-2026-26831: Vulnerability in Dbashford Textract
Critical. 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
npm, CWE-78, CWE-94
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 2.8 % in 30 days
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-9pcj-m5rr-p28g
- EU ID
- EUVD-2026-15459
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-78, CWE-94
- Published
- 25 Mar 2026
- Last change
- 17 Jun 2026
- Likelihood rank
- Higher than 87 % of all rated vulnerabilities
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Dbashford Textract Through 2.5.0. No fixed version recorded
Affected packages
Vulnerable version ranges and fixed releases
- textract npm, Affected through 2.5.0. No fixed version recorded
Advisories
Vendor and security advisories
- 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
- npmjs.com/package/textract
Related
- Textract vulnerabilities Recent advisories, watch this product