---
id: "CVE-2026-117511"
kind: "vulnerability"
aliases: ["CVE-2026-117511"]
title: "node-tesseract: image argument lets remote attackers inject OS commands"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["node.js", "npm", "package", "self-hosted"]
not_affected_if: ["no-user-input-to-image-argument"]
published_at: "2026-10-27T16:17:31+00:00"
first_seen_at: "2026-10-27T16:33:07+00:00"
updated_at: "2026-10-27T16:34:13+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-117511", "first_seen_at": "2026-10-27T16:33:07+00:00"}]
---

# node-tesseract: image argument lets remote attackers inject OS commands

The node-tesseract npm package builds a shell command from the image argument passed to its process function in lib/tesseract.js, without sanitizing it. An attacker who controls that argument can run arbitrary operating system commands on the host.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `npm ls node-tesseract` in each project to find whether it is installed and at which version
- Search code for calls to `process(` from the node-tesseract module that take user-supplied file paths or names
- unknown for other checks, as the sources do not say

## Fix

- No fixed version is named in the sources; the project has not responded to the report
- Remove node-tesseract or stop passing untrusted input as the image argument
- Validate image paths against an allowlist and avoid shell invocation for user input

## Timeline

- 2026-10-27T16:33:07+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-117511

## From the sources

A vulnerability has been found in desmondmorris node-tesseract up to 0.2.7. Affected by this issue is the function process of the file lib/tesseract.js of the component Command Builder. Such manipulation of the argument image leads to os command injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
