CVE-2026-26831

textract through 2.5.0 is vulnerable to OS Command Injection via the file path parameter in multiple extractors

Critical · published March 25, 2026

CVSS v3.1
9.8
EPSS
4%
Percentile
89.6
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03688 · 89.6th percentile
Published
2026-03-25T00:00Z
EPSS history
Timeline
  • 25 MAR 00:00Z
    textract through 2.5.0 is vulnerable to OS Command Injection via the file path parameter in multiple extractors
    cvelistv5