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
References
| Link | Resource |
|---|---|
| https://github.com/zapolnoch/node-tesseract-ocr | Product |
| https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js | Product |
| https://github.com/zebbernCVE/CVE-2026-26832 | Mitigation Third Party Advisory |
| https://www.npmjs.com/package/node-tesseract-ocr | Product |
Configurations
History
No history.
Information
Published : 2026-03-25 16:16
Updated : 2026-06-17 10:26
NVD link : CVE-2026-26832
Mitre link : CVE-2026-26832
CVE.ORG link : CVE-2026-26832
JSON object : View
Products Affected
zapolnoch
- tesseract_ocr
CWE
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
