Command Injection Vulnerability in node-opencv Package

node-opencv Updated 02 Oct 2025

Summary

26/03/2019
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2019-10061: utils/find-opencv.js in node-opencv (aka OpenCV bindings for Node.js) prior to 6.1.0 is vulnerable to Command Injection. Affects node-opencv versions < 6.0.0+git20180416.cfc96ba0-3. Fixed in 6.0.0+git20180416.cfc96ba0-3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

node-opencv is a package that provides OpenCV bindings for Node.js, enabling developers to utilize computer vision functionalities within their JavaScript applications. This package allows for image processing, video analysis, and other computer vision tasks. However, prior to version 6.1.0, it has been found to be vulnerable to a command injection flaw, which can be exploited if user input is not properly validated.

Vulnerability Detail

The vulnerability exists in the utils/find-opencv.js file of the node-opencv package, where it fails to validate user input. This oversight allows attackers to inject arbitrary commands, potentially leading to unauthorized command execution on the server. The implications of this vulnerability can be severe, as it could allow an attacker to manipulate the system, access sensitive data, or disrupt services.

How To Fix

Minimum fixed version

6.0.0+git20180416.cfc96ba0-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-opencv

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, it is advisable to sanitize and validate all user inputs before processing them within the application. This can help mitigate the risk of command injection until the package is updated. For example, you can implement input validation using regular expressions or libraries designed for input sanitization.

Conclusion

The command injection vulnerability in the node-opencv package poses a significant risk to applications utilizing this library. It is crucial for developers to update to the latest patched version and implement input validation to safeguard their systems against potential attacks.

See every vulnerability recorded for node-opencv →

Share this vulnerability

FAQ

Command injection is a type of security vulnerability that allows an attacker to execute arbitrary commands on a host operating system via a vulnerable application.

You can check if your application is affected by using the Vulert playground at Vulert Scanner. This tool analyzes your manifest file to identify vulnerabilities.

The risks include unauthorized access to the system, data breaches, and potential disruption of services, which can lead to significant operational and reputational damage.

Yes, Vulert provides a solution that monitors and alerts for open-source vulnerabilities in your software without requiring code access or installation.

If an immediate update is not possible, ensure to implement input validation and sanitization as a temporary workaround to mitigate the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for node-opencv.

How To Fix

Minimum fixed version

6.0.0+git20180416.cfc96ba0-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-opencv

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback