CVE-2020-7624: OS Command Injection in effect

effect Updated 02 Oct 2025

Summary

10/02/2022
No i
Critical
9.8

CVE-2020-7624: Withdrawn Advisory: OS Command Injection in effect. Affects effect versions < 1.0.4. 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 'effect' package is an npm package that provides functionality for executing commands. It is commonly used in Node.js applications to interact with the command line. The package allows users to execute arbitrary commands via the options argument. However, versions up to 1.0.4 are vulnerable to OS Command Injection.

Vulnerability Detail

The vulnerability in the 'effect' package allows an attacker to inject and execute arbitrary commands through the options argument. This can lead to unauthorized access, data leakage, and remote code execution. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

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

As a temporary workaround, it is advised to sanitize and validate the options argument before passing it to the 'effect' package. This can be done by implementing input validation and using safe methods to execute commands. Here's an example of how to sanitize the options argument:

const sanitizedOptions = validateOptions(options);
effect.execute(sanitizedOptions);

Conclusion

The 'effect' package up to version 1.0.4 is vulnerable to OS Command Injection, allowing execution of arbitrary commands. It is crucial to upgrade to a patched version of the package to mitigate the risk. Additionally, implementing input validation and sanitization can serve as a temporary workaround. For more information and assistance, reach out to DevNack.com.

See every vulnerability recorded for effect →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary commands, which can lead to unauthorized access, data leakage, and remote code execution.

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

Yes, it is recommended to upgrade to a version of the 'effect' package that is not affected by the command injection issue. The latest version should have the necessary security patches in place.

As a temporary workaround, you can sanitize and validate the options argument before passing it to the 'effect' package. Implement input validation and use safe methods to execute commands.

For further support on vulnerability remediation, you can contact info@devnack.com. They can provide guidance and assistance in fixing the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for effect.

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