CVE-2020-7781: Command Injection in connection-tester

connection-tester Updated 02 Oct 2025

Summary

17/12/2020
Yes i
Critical
9.8

CVE-2020-7781: Command injection in connection-tester. Affects connection-tester versions < 0.2.1. Fixed in 0.2.1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The connection-tester package is an npm package used for testing network connectivity. It provides a simple way to check if a connection can be established to a given host and port. The package is commonly used in network monitoring and troubleshooting applications. However, versions before 0.2.1 are vulnerable to command injection.

Vulnerability Detail

The vulnerability in connection-tester allows an attacker to inject arbitrary commands into the system. This occurs due to improper input sanitization in the index.js file at line 15. An attacker can exploit this vulnerability by providing malicious input that gets executed as a command on the host system. This can lead to various consequences, including unauthorized access, data leakage, and remote code execution.

How To Fix

Minimum fixed version

0.2.1

This is the first release that contains the fix.

npm install connection-tester@0.2.1

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 essential to upgrade to the fixed version of the connection-tester package to mitigate the risk.

Conclusion

The command injection vulnerability in connection-tester can lead to severe security risks. It is crucial to upgrade to version 0.2.1 or later to mitigate this vulnerability. For further assistance, contact DevNack.com.

See every vulnerability recorded for connection-tester →

Share this vulnerability

FAQ

Connection-tester is an npm package used for testing network connectivity.

Command injection is a security vulnerability that allows an attacker to execute arbitrary commands on a host system.

The consequences of this vulnerability can include unauthorized access, data leakage, and remote code execution.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will provide real-time alerts for open-source vulnerabilities.

For further support on vulnerability remediation, you can contact info@devnack.com.

How To Fix

Minimum fixed version

0.2.1

This is the first release that contains the fix.

npm install connection-tester@0.2.1

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