Vulnerability · Published Mar 25, 2026 · Assigned by mitre
CVE-2026-26832
Critical 9.8
In plain English
A critical-severity OS command injection in the node-tesseract-ocr package (npm). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 78% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | node-tesseract-ocr | no fix listed | GHSA-8j44-735h-w4w2 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N