CVE-2026-26832: Vulnerability in Zapolnoch Tesseract Ocr
Critical. 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
npm, CWE-78
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-8j44-735h-w4w2
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-78
- Published
- 25 Mar 2026
- Last change
- 17 Jun 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Zapolnoch Tesseract Ocr Through 2.2.1. No fixed version recorded
Affected packages
Vulnerable version ranges and fixed releases
- node-tesseract-ocr npm, Affected through 2.2.1. No fixed version recorded
Advisories
Vendor and security advisories
- github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js
- github.com/zebbernCVE/CVE-2026-26832
- github.com/zapolnoch/node-tesseract-ocr
- npmjs.com/package/node-tesseract-ocr
Related
- Tesseract Ocr vulnerabilities Recent advisories, watch this product