CRITICAL9.8
GHSA-8j44-735h-w4w2
node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter
Details
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
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/node-tesseract-ocr
Introduced in:
0No fixed version published yet for node-tesseract-ocr (npm). Pin to a known-safe version or switch to an alternative.