CVE-2026-26831: n/a
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.
AI Analysis
Technical Summary
CVE-2026-26831 is an OS command injection vulnerability in the textract library up to version 2.5.0. The issue occurs because the filePath parameter, which can be influenced by malicious filenames, is passed unsanitized to child_process.exec() in multiple extractor modules (lib/extractors/doc.js, rtf.js, dxf.js, images.js, and lib/util.js). This allows remote attackers to execute arbitrary commands on the host system. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code). The CVSS v3.1 base score is 9.8 (Critical), with network attack vector, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability. There is no known exploit in the wild and no vendor patch or advisory currently available.
Potential Impact
Successful exploitation of this vulnerability could lead to full compromise of the affected system, including arbitrary code execution with the privileges of the application running textract. This impacts confidentiality, integrity, and availability of the system. The vulnerability is remotely exploitable without authentication or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
CVE-2026-26831: n/a
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-26831 is an OS command injection vulnerability in the textract library up to version 2.5.0. The issue occurs because the filePath parameter, which can be influenced by malicious filenames, is passed unsanitized to child_process.exec() in multiple extractor modules (lib/extractors/doc.js, rtf.js, dxf.js, images.js, and lib/util.js). This allows remote attackers to execute arbitrary commands on the host system. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code). The CVSS v3.1 base score is 9.8 (Critical), with network attack vector, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability. There is no known exploit in the wild and no vendor patch or advisory currently available.
Potential Impact
Successful exploitation of this vulnerability could lead to full compromise of the affected system, including arbitrary code execution with the privileges of the application running textract. This impacts confidentiality, integrity, and availability of the system. The vulnerability is remotely exploitable without authentication or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-02-16T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
Threat ID: 69c40a67f4197a8e3b699a4e
Added to database: 3/25/2026, 4:16:39 PM
Last enriched: 4/3/2026, 1:16:57 PM
Last updated: 5/9/2026, 3:03:14 AM
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.