Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
3Blast Radius
ecosystem impact- 95 npm packages depend on node-tesseract-ocr (85 direct, 10 indirect)
Ecosystem-wide dependent count for version 2.2.1.
DescriptionCVE.org
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
AnalysisAI
The node-tesseract-ocr npm package versions through 2.2.1 contains a critical OS command injection vulnerability in the recognize() function where file path parameters are concatenated into shell commands without sanitization before being passed to child_process.exec(). Attackers can achieve complete remote code execution with no authentication required. A proof-of-concept exploit exists at the GitHub repository linked in references (zebbernCVE/CVE-2026-26832), indicating active research into this vulnerability.
Technical ContextAI
This vulnerability affects node-tesseract-ocr, a Node.js wrapper for Tesseract OCR functionality published on npm. The root cause is CWE-78 (OS Command Injection) occurring in src/index.js where the recognize() function accepts user-controlled file paths and directly concatenates them into command strings executed via Node.js child_process.exec() without input validation or sanitization. This allows shell metacharacters and command separators to break out of the intended command context and execute arbitrary system commands. The affected package serves as a bridge between Node.js applications and the Tesseract OCR engine, making it common in document processing and image-to-text conversion workflows.
RemediationAI
As of this analysis, no patched version has been released for node-tesseract-ocr beyond version 2.2.1. Organizations should immediately audit their dependencies for this package and consider replacing it with alternative OCR libraries until a security update is available. As an immediate mitigation, implement strict input validation on any file paths before passing them to the recognize() function, specifically whitelisting allowed characters (alphanumeric, underscores, hyphens, periods) and rejecting paths containing shell metacharacters such as semicolons, pipes, backticks, dollar signs, and ampersands. Deploy the application in a sandboxed environment with minimal system privileges and use container security controls to limit the blast radius of potential command execution. Monitor the official GitHub repository at https://github.com/zapolnoch/node-tesseract-ocr for security patches and consider forking the package to implement sanitization if business continuity requires continued use.
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic
Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Eval injection vulnerability in index.js in the syntax-error package before 1.1.1 for Node.js 0.10.x, as used in IBM Rat
The HTTP server in Node.js 0.10.x before 0.10.21 and 0.8.x before 0.8.26 allows remote attackers to cause a denial of se
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-15461
GHSA-8j44-735h-w4w2