Skip to main content
← All vulnerabilities
CVE-2026-26831GHSA-9PCJ-M5RR-P28G

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

Published
Last modified
published
Not listed in CISA KEV
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • textractnpm

    through 2.5.0

References 6

npmjs.com

GitHub · dbashford/textract

GitHub · zebbernCVE/CVE-2026-26831