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
  • CVE-2026-26832
Published
2026-03-25T18:31:47Z
Modified
2026-03-27T19:46:30.884234Z
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_at": "2026-03-27T19:38:38Z",
    "nvd_published_at": "2026-03-25T16:16:21Z",
    "severity": "CRITICAL",
    "github_reviewed": true
}
References

Affected packages

npm / node-tesseract-ocr

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown 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"