{"id":"CVE-2026-26831","aliases":["CVE-2026-26831","GHSA-9pcj-m5rr-p28g"],"related":[],"kind":"vulnerability","state":"published","title":"textract is vulnerable to OS Command Injection","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"textract hasta la versión 2.5.0 es vulnerable a la Inyección de Comandos del Sistema Operativo a través del parámetro de ruta de archivo en múltiples extractores. Al procesar archivos con nombres de archivo maliciosos, la ruta de archivo (filePath) se pasa directamente a child_process.exec() en lib/extractors/doc.js, rtf.js, dxf.js, images.js y lib/util.js con una sanitización inadecuada.","source":"nvd"}],"published":"2026-03-25T00:00:00.000Z","modified":"2026-06-17T10:26:21.513Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.5.0"}],"ecosystem":"npm","package":"textract","purl":"pkg:npm/textract","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.5.0"}],"vendor":"dbashford","product":"textract","cpe":"cpe:2.3:a:dbashford:textract:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/package/textract","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/dbashford/textract","tags":["package","product"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/dbashford/textract/blob/master/lib/extractors/doc.js","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/dbashford/textract/blob/master/lib/extractors/rtf.js","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/dbashford/textract/blob/master/lib/util.js","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/zebbernCVE/CVE-2026-26831","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26831","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-03-28T01:11:51.578Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-26831","url":"https://www.cve.org/CVERecord?id=CVE-2026-26831","licence":"CVE Terms of Use","modified":"2026-03-28T01:12:59.787Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9pcj-m5rr-p28g","url":"https://github.com/advisories/GHSA-9pcj-m5rr-p28g","licence":"CC-BY-4.0","modified":"2026-03-31T23:41:23.581Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-26831","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26831","licence":"Public domain","modified":"2026-06-17T10:26:21.513Z"}],"updatedAt":"2026-11-25T22:59:16.734Z","epss":{"score":0.02809,"percentile":0.8689,"date":"2026-12-01T12:00:22.000Z"}}