CVE-2026-26831

OS Command Injection via Malicious Filenames in textract 2.5.0

Published Mar 25, 2026 CVSS 3.1 · 9.8 Critical EPSS 2.6% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9pcj-m5rr-p28g textract is vulnerable to OS Command Injection
History
Type Values Removed Values Added
Title OS Command Injection via Malicious Filenames in textract 2.5.0
Type Values Removed Values Added
Title OS Command Injection via File Path in textract
Type Values Removed Values Added
Title OS Command Injection via File Path in textract
Type Values Removed Values Added
Title OS Command Injection via Unsanitized File Path in textract
Type Values Removed Values Added
Title OS Command Injection via Unsanitized File Path in textract
Type Values Removed Values Added
Title OS Command Injection in textract via Untrusted File Names
Type Values Removed Values Added
Weaknesses CWE-78
CPEs cpe:2.3:a:dbashford:textract:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
Title OS Command Injection in textract via Untrusted File Names
Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title OS Command Injection in textract via unsanitized file path
Weaknesses CWE-78
Type Values Removed Values Added
Title OS Command Injection in textract via unsanitized file path
Weaknesses CWE-78
Type Values Removed Values Added
Title OS Command Injection via Malicious File Paths in textract Package
Weaknesses CWE-20
CWE-78
Type Values Removed Values Added
First Time appeared Dbashford
Dbashford textract
Vendors & Products Dbashford
Dbashford textract
Type Values Removed Values Added
Title OS Command Injection via Malicious File Paths in textract Package
Weaknesses CWE-20
CWE-78
Type Values Removed Values Added
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
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 28, 2026, 1:12 AM
Reserved
Feb 16, 2026, 12:00 AM
Status
Analyzed
Published
Mar 25, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:26 AM