CVE-2026-26832
CRITICAL 9.8CVSS 3.1node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter
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
- Published
- 25 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-8j44-735h-w4w2
- Sources
- NVDJSONOSV GHSA-8j44-735h-w4w2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | zapolnoch | tesseract_ocrcpe:2.3:a:zapolnoch:tesseract_ocr:*:*:*:*:*:node.js:*:* |
<= 2.2.1 | |
| OSV | npm | node-tesseract-ocr | <= 2.2.1 |
References
- https://github.com/zapolnoch/node-tesseract-ocr · Product, PACKAGE
- https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js · Product, WEB
- https://github.com/zebbernCVE/CVE-2026-26832 · Mitigation, Third Party Advisory, WEB
- https://www.npmjs.com/package/node-tesseract-ocr · Product
- https://nvd.nist.gov/vuln/detail/CVE-2026-26832 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 25 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 25 Mar 2026)