CVE-2026-26831: textract · Code Injection
Affects textractSource CVE Database V5
Not known to be exploited · CVSS 9.8 Critical.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 2.5% chance of exploitation in 30 days – higher than 84% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 25 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmtextractpkg:npm/textractOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until an official fix is released, avoid processing files with untrusted or potentially malicious filenames using affected versions of textract. Consider implementing external controls such as sandboxing or restricting execution permissions for processes running textract to limit potential damage.
Description
The textract library through version 2.5.0 contains a critical OS command injection vulnerability (CVE-2026-26831). This flaw arises because the file path parameter in multiple extractors is passed directly to child_process.exec() without proper sanitization. This affects several modules including doc.js, rtf.js, dxf.js, images.js, and util.
References
- npmjs.com/package/textract (opens in a new tab)
- github.com/dbashford/textract (opens in a new tab)
- github.com/dbashford/textract/blob/master/lib/extractors/doc.js (opens in a new tab)
- github.com/dbashford/textract/blob/master/lib/extractors/rtf.js (opens in a new tab)
- github.com/dbashford/textract/blob/master/lib/util.js (opens in a new tab)
- github.com/zebbernCVE/CVE-2026-26831 (opens in a new tab)