CVE-2026-26832

critical

Description

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

https://www.npmjs.com/package/node-tesseract-ocr

https://github.com/zebbernCVE/CVE-2026-26832

https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js

https://github.com/zapolnoch/node-tesseract-ocr

Details

Source: Mitre, NVD

Published: 2026-03-25

Updated: 2026-06-05

Risk Information

CVSS v2

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Severity: Critical

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical

EPSS

EPSS: 0.00193