{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-26831","id":"CVE-2026-26831","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","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:30:46.972695128Z","reserved":"2026-02-16T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"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","rating":"critical","source":"NVD"},"metrics":[{"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","rating":"critical","source":"NVD"},{"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","rating":"critical","source":"CISA-ADP"},{"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","rating":"critical","source":"OSV"},{"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","rating":"critical","source":"GitHub"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"textract","purl":"pkg:npm/textract","ranges":["<=2.5.0"],"fixed":[],"advisory":"GHSA-9pcj-m5rr-p28g"}],"cwes":["CWE-94","CWE-78"],"aliases":["GHSA-9pcj-m5rr-p28g"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26831.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26831","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.0257,"epssPercentile":0,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-26831","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26831","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-26831","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9pcj-m5rr-p28g","ok":true,"note":"GHSA-9pcj-m5rr-p28g"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-26831","ok":true,"note":"scored "}],"aiTitle":false,"tech":[],"critical":[],"attention":null}