Command Injection Affecting node-tesseract-ocr package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.27% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NODETESSERACTOCR-15874141
  • published2 Apr 2026
  • disclosed25 Mar 2026
  • creditUnknown

Introduced: 25 Mar 2026

NewCVE-2026-26832  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

There is no fixed version for node-tesseract-ocr.

Overview

node-tesseract-ocr is an A Node.js wrapper for the Tesseract OCR API

Affected versions of this package are vulnerable to Command Injection via the recognize() function. An attacker can execute arbitrary system commands by supplying crafted input to the file path parameter, which is concatenated into a shell command and executed without proper sanitization.

CVSS Base Scores

version 4.0
version 3.1