GHSA-8j44-735h-w4w2

Suggest an improvement
Source
https://github.com/advisories/GHSA-8j44-735h-w4w2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-8j44-735h-w4w2/GHSA-8j44-735h-w4w2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8j44-735h-w4w2
Aliases
Published
2026-03-25T18:31:47Z
Modified
2026-03-27T19:56:22Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
node-tesseract-ocr is vulnerable to OS Command Injection through unsanitized recognize() function parameter
Details

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

Database specific
{
    "cwe_ids":  [
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-27T19:38:38Z",
    "nvd_published_at":  "2026-03-25T16:16:21Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / node-tesseract-ocr

Package

Name
node-tesseract-ocr
View open source insights on deps.dev
Purl
pkg:npm/node-tesseract-ocr

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.2.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-8j44-735h-w4w2/GHSA-8j44-735h-w4w2.json"