CVE-2017-16066: opencv.js - Environment Variable Hijacking

opencv.js Updated 02 Oct 2025

Summary

29/08/2018
No i
High
7.5

CVE-2017-16066: opencv.js is malware. Affects opencv.js versions < 1.2.1. No fix is published. 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

The opencv.js package is an npm module that provides JavaScript bindings for OpenCV, a popular computer vision library. It allows developers to utilize OpenCV functionality in their JavaScript applications. However, a moderate severity vulnerability (CVE-2017-16066) was discovered in opencv.js, which allowed for the hijacking of environment variables. This malicious module has since been unpublished by npm.

Vulnerability Detail

The vulnerability in opencv.js allowed an attacker to exploit the package and gain control over environment variables. By manipulating these variables, an attacker could potentially execute arbitrary code, escalate privileges, or perform other malicious actions. This vulnerability posed a moderate risk to applications utilizing opencv.js.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is advised to update the package to a non-vulnerable version as soon as possible.

Conclusion

The opencv.js package was found to have a moderate severity vulnerability that allowed for the hijacking of environment variables. It is crucial to update to a non-vulnerable version of the package to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for opencv.js →

Share this vulnerability

FAQ

opencv.js is an npm module that provides JavaScript bindings for OpenCV, a computer vision library.

This vulnerability allowed an attacker to hijack environment variables, potentially leading to the execution of arbitrary code or other malicious actions.

To fix this vulnerability, update the opencv.js package to a version beyond 1.2.1, which is not affected by the issue.

No specific workaround is mentioned for this vulnerability. Updating the package to a non-vulnerable version is the recommended solution.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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