GHSA-8j44-735h-w4w2
node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | node-tesseract-ocr | <= 2.2.1 | no fix listed |
Details
As written in the advisory (Markdown source, shown as plain text).
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
References
External links from the advisory. They lead to third-party sites.