Command Injection in node-opencv

node-opencv Updated 02 Oct 2025

Summary

26/03/2019
N/A
Yes i
Critical
9.8

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 across 3 version ranges.

< 6.0.0+git20180416.cfc96ba0-3 < 81a4b8620188e89f7e4fc985f3c89b58d4bcc86b < aaece6921d7368577511f06c94c99dd4e9653563

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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

node-opencv is a package that provides OpenCV bindings for Node.js. It allows developers to use the OpenCV library in their Node.js applications for computer vision and image processing tasks. However, versions prior to 6.1.0 are vulnerable to Command Injection.

Vulnerability Detail

The vulnerability (CVE-2019-10061) exists in the 'utils/find-opencv.js' file of node-opencv. It arises due to the lack of user input validation, which enables attackers to execute arbitrary commands. This can lead to unauthorized access, data leakage, or even complete compromise of the affected system.

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

There is no known workaround for this vulnerability. It is crucial to update to the fixed version as soon as possible to ensure the security of your application.

Conclusion

In conclusion, the command injection vulnerability in node-opencv (CVE-2019-10061) can have severe consequences, including unauthorized access and data compromise. It is crucial to update to version 6.1.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for node-opencv →

Share this vulnerability

FAQ

node-opencv is a package that provides OpenCV bindings for Node.js, allowing developers to utilize OpenCV's computer vision capabilities in their Node.js applications.

Command Injection is a security vulnerability that occurs when an application allows user-supplied input to be executed as a command. Attackers can exploit this vulnerability to execute arbitrary commands, potentially leading to unauthorized access or data compromise.

The command injection vulnerability in node-opencv can allow attackers to execute arbitrary commands on the affected system. This can lead to unauthorized access, data leakage, or even complete compromise of the system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just a manifest file like package-lock.json.

You can find more information about this vulnerability, including its CVSS score and technical details, in the CVE-2019-10061 JSON report available at https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-10061.json

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