{"id":"CVE-2026-26831","aliases":["EUVD-2026-15459","GHSA-9pcj-m5rr-p28g"],"status":"published","title":"textract is vulnerable to OS Command Injection","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","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.0257,"percentile":0.85365,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78","CWE-94"],"published":"2026-03-25T00:00:00Z","modified":"2026-10-28T02:30:46Z","exploits":[{"source":"pocgithub","id":"zebbernCVE/CVE-2026-26831","title":"zebbernCVE/CVE-2026-26831","date":"2026-03-24","url":"https://github.com/zebbernCVE/CVE-2026-26831"}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"textract","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.5.0"}]}]},{"source":"osv","ecosystem":"npm","package":"textract","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.5.0"}]}]}],"products":[{"vendor":"dbashford","product":"textract"}],"references":[{"url":"https://www.npmjs.com/package/textract","tags":["Product","web"]},{"url":"https://github.com/dbashford/textract","tags":["Product","package"]},{"url":"https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js","tags":["Product","web"]},{"url":"https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js","tags":["Product","web"]},{"url":"https://github.com/dbashford/textract/blob/master/lib/util.js","tags":["Product","web"]},{"url":"https://github.com/zebbernCVE/CVE-2026-26831","tags":["Exploit","Third Party Advisory","package","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26831","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9pcj-m5rr-p28g"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26831.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-26831","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","status":"published","published":"2026-03-25T00:00:00Z","modified":"2026-03-28T01:12:59.787Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T13:38:20.971157Z"}],"euvd":[{"id":"EUVD-2026-15459","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","status":"published","published":"2026-03-25T00:00:00Z","modified":"2026-03-28T01:12:59Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T19:25:26.783049Z"}],"ghsa":[{"id":"GHSA-9pcj-m5rr-p28g","title":"textract is vulnerable to OS Command Injection","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","status":"published","published":"2026-03-25T18:31:47Z","modified":"2026-03-31T23:24:43Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78","CWE-94"],"updated_at":"2026-11-02T14:39:47.075804Z"}],"nvd":[{"id":"CVE-2026-26831","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","status":"published","published":"2026-03-25T16:16:21.123Z","modified":"2026-06-17T10:26:21.513Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-78","CWE-94"],"updated_at":"2026-11-02T14:12:11.077116Z"}],"osv":[{"id":"CVE-2026-26831","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","status":"published","published":"2026-03-25T00:00:00Z","modified":"2026-10-28T02:30:46.972695128Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:59.80315Z"},{"id":"GHSA-9pcj-m5rr-p28g","title":"textract is vulnerable to OS Command Injection","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","status":"published","published":"2026-03-25T18:31:47Z","modified":"2026-03-31T23:41:23.581167Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78","CWE-94"],"updated_at":"2026-11-02T15:46:43.875515Z"}]}}
