Advisory

GHSA-9pcj-m5rr-p28g

Also known as: CVE-2026-26831

Summary

textract is vulnerable to OS Command Injection

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-03-25 18:31 UTC
Modified
2026-03-31 23:41 UTC

Affected packages and fixes

textract

npm · All systems

Affected

  • introduced 0, last affected 2.5.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences