CVE-2026-26831
CRITICAL 9.8CVSS 3.1textract is vulnerable to OS Command Injection
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
- Published
- 25 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-78CWE-94
- Also known as
- GHSA-9pcj-m5rr-p28g
- Sources
- NVDJSONOSV GHSA-9pcj-m5rr-p28gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | dbashford | textractcpe:2.3:a:dbashford:textract:*:*:*:*:*:node.js:*:* |
<= 2.5.0 | |
| OSV | npm | textract | <= 2.5.0 |
References
- https://github.com/dbashford/textract · Product, PACKAGE
- https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js · Product, WEB
- https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js · Product, WEB
- https://github.com/dbashford/textract/blob/master/lib/util.js · Product, WEB
- https://github.com/zebbernCVE/CVE-2026-26831 · Exploit, Third Party Advisory, WEB
- https://www.npmjs.com/package/textract · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-26831 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 25 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 25 Mar 2026)