{"id":"CVE-2026-26831","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","aliases":["GHSA-9pcj-m5rr-p28g"],"modified":"2026-08-12T03:51:10.063586570Z","published":"2026-03-25T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26831.json"},"references":[{"type":"WEB","url":"https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js"},{"type":"WEB","url":"https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js"},{"type":"WEB","url":"https://github.com/dbashford/textract/blob/master/lib/util.js"},{"type":"WEB","url":"https://www.npmjs.com/package/textract"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26831.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26831"},{"type":"PACKAGE","url":"https://github.com/dbashford/textract"},{"type":"PACKAGE","url":"https://github.com/zebbernCVE/CVE-2026-26831"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dbashford/textract","events":[{"introduced":"0"},{"fixed":"d5610dafed92b952c194aedd5702c0d5a1af12ec"}],"database_specific":{"cpe":"cpe:2.3:a:dbashford:textract:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.5.0"},{"last_affected":"2.5.0"}],"source":["DESCRIPTION","CPE_RANGE"]}}],"versions":["v2.4.0","v2.3.0","v2.2.0","v2.1.2","v2.1.1","v2.1.0","v2.0.0","v1.2.1","v1.2.0","v1.1.2","v1.1.1","v1.1.0","v1.0.4","v1.0.3","v1.0.2","v1.0.1","v1.0.0","v0.20.0","v0.19.0","v0.18.0","v0.17.0","v0.16.0","v0.15.0","v0.14.0","v0.13.2","v0.13.1","v0.11.2","v0.11.1","v0.11.0","v0.10.1","v0.10.0","v0.9.0","v0.4.1","v0.3.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-26831.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}