Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2026-26832 EUVD-2026-15461GHSA-8j44-735h-w4w2

node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter

Published Mar 25, 2026 · Updated Mar 25, 2026 · Assigned by mitre

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

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm node-tesseract-ocr <= 2.2.1 — GHSA-8j44-735h-w4w2

References