9.8critical
textract is vulnerable to OS Command Injection
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 2.81% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-9pcj-m5rr-p28g
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| textract (npm) | up to 2.5.0 | GitHub Advisory Database |
| dbashford textract | up to 2.5.0 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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
NVD (es)
textract hasta la versión 2.5.0 es vulnerable a la Inyección de Comandos del Sistema Operativo a través del parámetro de ruta de archivo en múltiples extractores. Al procesar archivos con nombres de archivo maliciosos, la ruta de archivo (filePath) se pasa directamente a child_process.exec() en lib/extractors/doc.js, rtf.js, dxf.js, images.js y lib/util.js con una sanitización inadecuada.
References
| https://www.npmjs.com/package/textract | product, web | |
| https://github.com/dbashford/textract | package, product | |
| 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://nvd.nist.gov/vuln/detail/CVE-2026-26831 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26831 changed 2026-03-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9pcj-m5rr-p28g changed 2026-03-31 | CC-BY-4.0 |
| NVD | CVE-2026-26831 changed 2026-06-17 | Public domain |