{"id":"CVE-2026-26831","aliases":["GHSA-9pcj-m5rr-p28g"],"url":"https://o3.security/vulnerability/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","published":"2026-03-25T00:00:00Z","modified":"2026-07-15T01:49:04.225026269Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"textract","fixedVersion":null}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:04.225026269Z"}}