All reports
Critical

textract is vulnerable to OS Command Injection

Affected versions

Affected versions
<= 2.5.0
Fixed version
Not reported

Exploitation

CVE-2026-26831

Probability of exploitation in the next 30 days: 2.81%

FIRST EPSS · 2026-11-22

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

Links