{"id":"CVE-2026-26832","aliases":["EUVD-2026-15461","GHSA-8j44-735h-w4w2"],"status":"published","title":"node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter","description":"node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01775,"percentile":0.78483,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78"],"published":"2026-03-25T00:00:00Z","modified":"2026-10-28T02:30:52Z","exploits":[{"source":"pocgithub","id":"zebbernCVE/CVE-2026-26832","title":"zebbernCVE/CVE-2026-26832","date":"2026-03-24","url":"https://github.com/zebbernCVE/CVE-2026-26832"}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"node-tesseract-ocr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.2.1"}]}]},{"source":"osv","ecosystem":"npm","package":"node-tesseract-ocr","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.2.1"}]}]}],"products":[{"vendor":"zapolnoch","product":"tesseract_ocr"}],"references":[{"url":"https://www.npmjs.com/package/node-tesseract-ocr","tags":["Product","web"]},{"url":"https://github.com/zapolnoch/node-tesseract-ocr","tags":["Product","package"]},{"url":"https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js","tags":["Product","web"]},{"url":"https://github.com/zebbernCVE/CVE-2026-26832","tags":["Mitigation","Third Party Advisory","package","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26832","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8j44-735h-w4w2"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26832.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-26832","description":"node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization","status":"published","published":"2026-03-25T00:00:00Z","modified":"2026-03-25T17:52:56.51Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"critical","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T13:38:20.971157Z"}],"euvd":[{"id":"EUVD-2026-15461","description":"node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization","status":"published","published":"2026-03-25T00:00:00Z","modified":"2026-03-25T17:52:56Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"critical"}],"updated_at":"2026-11-02T19:25:29.129467Z"}],"ghsa":[{"id":"GHSA-8j44-735h-w4w2","title":"node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter","description":"node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization","status":"published","published":"2026-03-25T18:31:47Z","modified":"2026-03-27T19:38:39Z","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"],"updated_at":"2026-11-02T14:39:43.747579Z"}],"nvd":[{"id":"CVE-2026-26832","description":"node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization","status":"published","published":"2026-03-25T16:16:21.24Z","modified":"2026-06-17T10:26:21.67Z","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":"secondary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:12:11.077116Z"}],"osv":[{"id":"CVE-2026-26832","description":"node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization","status":"published","published":"2026-03-25T00:00:00Z","modified":"2026-10-28T02:30:52.791134586Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N","level":"critical"}],"updated_at":"2026-11-02T15:44:59.80315Z"},{"id":"GHSA-8j44-735h-w4w2","title":"node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter","description":"node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization","status":"published","published":"2026-03-25T18:31:47Z","modified":"2026-03-27T19:56:22.098119Z","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"],"updated_at":"2026-11-02T15:46:42.437513Z"}]}}
