CVE-2026-26831: textract - Command Injection
- Cve: CVE-2026-26831
- Name: textract - Command Injection
- 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
- Impact: Attackers can execute arbitrary OS commands, potentially leading to full system compromise.
- Remediation: Update to the latest version of textract.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02809
- Epss percentile: 0.86763
- Assignee: [email protected]
- Published at: 2026-03-25T16:16:21Z
- Age in days: 244
- Modified at: 2026-06-17T10:26:21Z
- Public exploits total: 1
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-26831
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/zebbernCVE/CVE-2026-26831 | nvd | 2026-03-25 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| dbashford:textract | <= 2.5.0 | no | nvd | /v1/products/dbashford/textract |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| dbashford/textract | package | yes | /v1/repositories/dbashford/textract |
Index
- Repositories: 2
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-03-25
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts