CVE-2026-26832

Published Mar 25, 2026 CVSS 3.1 · 9.8 Critical EPSS 1.9% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8j44-735h-w4w2 node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter
History
Type Values Removed Values Added
Title Node.js Tesseract OCR Wrapper Vulnerability Allows OS Command Injection
Type Values Removed Values Added
Title Node.js Tesseract OCR Wrapper Vulnerability Allows OS Command Injection
Type Values Removed Values Added
Title node‑tesseract‑ocr OS Command Injection via Unsanitized File Path
Type Values Removed Values Added
First Time appeared Zapolnoch tesseract Ocr
CPEs cpe:2.3:a:zapolnoch:tesseract_ocr:*:*:*:*:*:node.js:*:*
Vendors & Products Zapolnoch tesseract Ocr
Type Values Removed Values Added
First Time appeared Zapolnoch
Zapolnoch node-tesseract-ocr
Vendors & Products Zapolnoch
Zapolnoch node-tesseract-ocr
Type Values Removed Values Added
Title node‑tesseract‑ocr OS Command Injection via Unsanitized File Path
Type Values Removed Values Added
Weaknesses CWE-78
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 25, 2026, 5:52 PM
Reserved
Feb 16, 2026, 12:00 AM
Status
Analyzed
Published
Mar 25, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:26 AM