CVE-2026-26832
node-tesseract-ocr is an npm package that provides a Node.js …
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
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/zapolnoch/node-tesseract-ocr
- github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js
- github.com/zebbernCVE/CVE-2026-26832
- www.npmjs.com/package/node-tesseract-ocr
- nvd.nist.gov/vuln/detail/CVE-2026-26832
- github.com/advisories/GHSA-8j44-735h-w4w2
- nvd.nist.gov/vuln/detail/CVE-2026-26832
- cve.org/CVERecord?id=CVE-2026-26832
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.