CVE-2025-63705

OS Command Injection in node-ts-ocr 1.0.15 via invokeImageOcr Function

Published May 7, 2026 CVSS 3.1 · 8.8 High EPSS 1.2% KEV · Not listed
Description
NPM package node-ts-ocr 1.0.15 is vulnerable to OS Command Injection via the invokeImageOcr function in src/index.js.

Analysis

AI-generated

Technical impact

The vulnerability occurs in the node-ts-ocr NPM package, version 1.0.15, where the invokeImageOcr function fails to properly validate input used in a shell command, allowing an attacker to inject OS commands. Successful exploitation could result in remote code execution, compromising the confidentiality, integrity, and availability of the systems running the application.

Affected Systems

Any application that depends on node-ts-ocr 1.0.15 is affected. No specific operating system is mentioned, so the impact applies wherever the package is deployed, including Node.js environments that run the vulnerable code.

Risk and Exploitability

The CVE reports a CVSS score of 8.8 and an EPSS score of 1%. The vulnerability is not listed in CISA KEV. OS command injection is a high‑risk flaw; an attacker with access to the invokeImageOcr API could execute arbitrary commands. The lack of official remediation data suggests the risk remains significant until a patch or alternative solution is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a later, fixed version of node-ts-ocr if available, or replace it with a secure OCR library.
  • Verify that any arguments passed to invokeImageOcr are strictly validated and sanitized; avoid passing unsanitized data from untrusted sources.
  • Run the application with the least privileges necessary and, if possible, isolate the OCR processing in a sandboxed environment to limit damage if the vulnerability is exploited.

Generated by OpenCVE AI on June 18, 2026 at 04:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8jh2-3mw6-6pfm node-ts-ocr is vulnerable to OS Command Injection via the invokeImageOcr function in src/index.js
History
Type Values Removed Values Added
Title OS Command Injection in node-ts-ocr 1.0.15 via invokeImageOcr Function
Type Values Removed Values Added
Title Node-ts-ocr 1.0.15 Vulnerable to OS Command Injection
Type Values Removed Values Added
Title Node-ts-ocr 1.0.15 Vulnerable to OS Command Injection
Type Values Removed Values Added
Title OS Command Injection in node-ts-ocr 1.0.15
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Node Ts Ocr
Node Ts Ocr node Ts Ocr
Vendors & Products Node Ts Ocr
Node Ts Ocr node Ts Ocr
Type Values Removed Values Added
Title OS Command Injection in node-ts-ocr 1.0.15
Weaknesses CWE-78
Type Values Removed Values Added
Description NPM package node-ts-ocr 1.0.15 is vulnerable to OS Command Injection via the invokeImageOcr function in src/index.js.
References
Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 8, 2026, 4:41 PM
Reserved
Oct 27, 2025, 12:00 AM
Status
Awaiting Analysis
Published
May 7, 2026, 3:16 PM
Modified
Nov 4, 2026, 8:10 PM