{"id":"GHSA-9pcj-m5rr-p28g","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","aliases":["CVE-2026-26831"],"modified":"2026-03-31T23:41:23.581167Z","published":"2026-03-25T18:31:47Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-03-31T23:24:42Z","nvd_published_at":"2026-03-25T16:16:21Z","cwe_ids":["CWE-78","CWE-94"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26831"},{"type":"PACKAGE","url":"https://github.com/dbashford/textract"},{"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://github.com/zebbernCVE/CVE-2026-26831"},{"type":"WEB","url":"https://www.npmjs.com/package/textract"}],"affected":[{"package":{"name":"textract","ecosystem":"npm","purl":"pkg:npm/textract"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.5.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-9pcj-m5rr-p28g/GHSA-9pcj-m5rr-p28g.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"}]}