CVE-2026-26832

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
Configurations

Configuration 1 (hide)

cpe:2.3:a:zapolnoch:tesseract_ocr:*:*:*:*:*:node.js:*:*

History

05 Jun 2026, 14:33

Type Values Removed Values Added
References () https://github.com/zapolnoch/node-tesseract-ocr - () https://github.com/zapolnoch/node-tesseract-ocr - Product
References () https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js - () https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js - Product
References () https://github.com/zebbernCVE/CVE-2026-26832 - () https://github.com/zebbernCVE/CVE-2026-26832 - Mitigation, Third Party Advisory
References () https://www.npmjs.com/package/node-tesseract-ocr - () https://www.npmjs.com/package/node-tesseract-ocr - Product
CPE cpe:2.3:a:zapolnoch:tesseract_ocr:*:*:*:*:*:node.js:*:*
First Time Zapolnoch
Zapolnoch tesseract Ocr
Summary
  • (es) node-tesseract-ocr es un paquete npm que proporciona un *wrapper* de Node.js para Tesseract OCR. En todas las versiones hasta la 2.2.1, la función recognize() en src/index.js es vulnerable a la inyección de comandos del sistema operativo. El parámetro de ruta de archivo se concatena en una cadena de comando de *shell* y se pasa a child_process.exec() sin una sanitización adecuada.

25 Mar 2026, 18:16

Type Values Removed Values Added
CWE CWE-78

25 Mar 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-25 16:16

Updated : 2026-06-05 14:33


NVD link : CVE-2026-26832

Mitre link : CVE-2026-26832

CVE.ORG link : CVE-2026-26832


JSON object : View

Products Affected

zapolnoch

  • tesseract_ocr
CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')