~ / search / GHSA-9pcj-m5rr-p28g

GHSA-9pcj-m5rr-p28g

textract is vulnerable to OS Command Injection

Source: GitHub Advisory Database (reviewed) Critical CVE-2026-26831

Packages

EcosystemPackageAffectedFixed in
npm textract <= 2.5.0 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

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

References

External links from the advisory. They lead to third-party sites.