Security mailing lists by PureSourceCode

CVE-2026-26832

CRITICAL 9.8CVSS 3.1

node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter

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

Published
25 Mar 2026
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Analyzed
Weakness
CWE-78
Also known as
GHSA-8j44-735h-w4w2
Sources
NVDJSONOSV GHSA-8j44-735h-w4w2JSON

Scores

SourceScored byVersionScoreVector / decision
NVD cve@mitre.org (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD zapolnoch tesseract_ocr
cpe:2.3:a:zapolnoch:tesseract_ocr:*:*:*:*:*:node.js:*:*
<= 2.2.1
OSV npm node-tesseract-ocr <= 2.2.1

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 25 Mar 2026)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 25 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.