Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-26832: n/a

0
Critical
VulnerabilityCVE-2026-26832cvecve-2026-26832
Published: Wed Mar 25 2026 (03/25/2026, 00:00:00 UTC)
Source: CVE Database V5

Description

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/25/2026, 16:31:00 UTC

Technical Analysis

The vulnerability identified as CVE-2026-26832 affects the node-tesseract-ocr npm package, a Node.js wrapper for the Tesseract OCR engine. In all versions up to 2.2.1, the recognize() function constructs a shell command string by directly concatenating a user-supplied file path parameter. This string is then passed to Node.js's child_process.exec() function without any sanitization or validation, leading to an OS command injection vulnerability. An attacker can exploit this flaw by crafting a malicious file path that includes shell metacharacters or additional commands, which the system will execute with the privileges of the Node.js process. This can result in arbitrary command execution, allowing attackers to read, modify, or delete data, install malware, or pivot within the network. The vulnerability requires no authentication or user interaction, making it highly exploitable remotely. The CVSS v3.1 score of 9.8 reflects the critical nature of this flaw, with high impact on confidentiality, integrity, and availability. Although no known exploits are currently reported, the simplicity of exploitation and the widespread use of node-tesseract-ocr in OCR-related applications pose a significant risk. The lack of official patches at the time of reporting necessitates immediate mitigation efforts by users of the package.

Potential Impact

This vulnerability poses a severe risk to organizations using node-tesseract-ocr in their software stacks, especially those processing untrusted input for OCR tasks. Successful exploitation can lead to full system compromise, including unauthorized data access, data corruption, service disruption, and potential lateral movement within corporate networks. The ability to execute arbitrary OS commands without authentication or user interaction increases the likelihood of automated attacks and wormable exploits. Organizations relying on this package in production environments, continuous integration pipelines, or cloud services may face operational downtime, data breaches, and reputational damage. The critical severity and ease of exploitation make this a high-priority threat for software developers, DevOps teams, and security professionals worldwide.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately audit their use of node-tesseract-ocr and avoid passing unsanitized user input to the recognize() function. Implement strict input validation and sanitization to ensure file path parameters do not contain shell metacharacters or unexpected commands. Where possible, replace child_process.exec() with safer alternatives such as child_process.execFile() or spawn(), which do not invoke a shell and reduce injection risk. Monitor for updates or patches from the package maintainers and apply them promptly once available. As a temporary measure, consider sandboxing the Node.js process or running it with minimal privileges to limit potential damage. Additionally, implement network-level protections such as web application firewalls (WAFs) to detect and block suspicious command injection attempts targeting OCR-related endpoints.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2026-02-16T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69c40a67f4197a8e3b699a57

Added to database: 3/25/2026, 4:16:39 PM

Last enriched: 3/25/2026, 4:31:00 PM

Last updated: 3/26/2026, 5:32:23 AM

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses