Critical
Security advisory
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-26832
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:18 UTC · Revision 1
Source evidence
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
osv:CVE-2026-26832
Complete source record
{
"id": "24b39cb2d9f2b0c8d17fc6ac15a8f087e62538f0b56799e81c4ee5b5e2849c4c",
"url": "https://osv.dev/vulnerability/CVE-2026-26832",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2026-26832",
"summary": "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",
"evidence": "osv:CVE-2026-26832",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2026-26832",
"aliases": [
"CVE-2026-26832",
"GHSA-8j44-735h-w4w2"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/zapolnoch/node-tesseract-ocr",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "9f6dc9d738020aa8a12371b79dabac492bf471d7"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2.1"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:zapolnoch:tesseract_ocr:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.2.1",
"v2.2.0",
"v2.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-26832.json"
}
}
],
"modified": "2026-10-28T02:30:52.791134586Z",
"provider": "osv",
"references": [
"https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js",
"https://www.npmjs.com/package/node-tesseract-ocr",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26832.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-26832",
"https://github.com/zapolnoch/node-tesseract-ocr",
"https://github.com/zebbernCVE/CVE-2026-26832"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26832.json"
}
},
"related_cves": [
{
"value": "CVE-2026-26832",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521713,
"published_at": "2026-03-25T00:00:00+00:00"
}