{"id":"GHSA-8j44-735h-w4w2","summary":"node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter","details":"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","aliases":["CVE-2026-26832"],"modified":"2026-03-27T19:56:22.098119Z","published":"2026-03-25T18:31:47Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-03-27T19:38:38Z","nvd_published_at":"2026-03-25T16:16:21Z","cwe_ids":["CWE-78"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26832"},{"type":"PACKAGE","url":"https://github.com/zapolnoch/node-tesseract-ocr"},{"type":"WEB","url":"https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js"},{"type":"WEB","url":"https://github.com/zebbernCVE/CVE-2026-26832"}],"affected":[{"package":{"name":"node-tesseract-ocr","ecosystem":"npm","purl":"pkg:npm/node-tesseract-ocr"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-8j44-735h-w4w2/GHSA-8j44-735h-w4w2.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"}]}