← Back to CVEs
CVE-2026-26831
CRITICAL9.8
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
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published3/25/2026
Last Modified3/30/2026
Sourcenvd
Honeypot Sightings0
Affected Products
dbashford:textract
Weaknesses (CWE)
CWE-78CWE-94
References
https://github.com/dbashford/textract(cve@mitre.org)
https://github.com/zebbernCVE/CVE-2026-26831(cve@mitre.org)
https://www.npmjs.com/package/textract(cve@mitre.org)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.