Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2026-26831 EUVD-2026-15459GHSA-9pcj-m5rr-p28g

textract is vulnerable to OS Command Injection

Published Mar 25, 2026 · Updated Mar 28, 2026 · Assigned by mitre

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

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm textract <= 2.5.0 — GHSA-9pcj-m5rr-p28g

References