CVE-2019-10801: OS Command Injection in enpeem

enpeem Updated 02 Oct 2025

Summary

13/04/2021
No i
High
9.8

CVE-2019-10801: OS Command Injection in enpeem. Affects enpeem versions < 2.2.0. 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 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

enpeem is an npm package that provides functionality for executing commands. It is vulnerable to OS command injection, which allows an attacker to execute arbitrary commands. This vulnerability exists due to the lack of sanitization of the 'options.dir' argument provided to the 'exec' function.

Vulnerability Detail

The OS command injection vulnerability in enpeem can be exploited by an attacker to execute arbitrary commands on the system. By manipulating the 'options.dir' argument, an attacker can inject malicious commands that will be executed by the 'exec' function. This can lead to unauthorized access, data leakage, or even complete compromise of the affected system.

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

A possible workaround for this vulnerability is to manually sanitize the 'options.dir' argument before passing it to the 'exec' function. This can be done by removing any potentially dangerous characters or commands from the input. Here is an example of how to sanitize the argument using regular expressions in JavaScript:

const sanitizedDir = options.dir.replace(/[&|;`$()\<>]/g, '');

Conclusion

In conclusion, enpeem is vulnerable to OS command injection, which allows an attacker to execute arbitrary commands. To mitigate this vulnerability, it is important to sanitize user input and use parameterized queries or prepared statements when executing commands. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for enpeem →

Share this vulnerability

FAQ

enpeem is an npm package that provides functionality for executing commands.

OS command injection is a vulnerability that allows an attacker to execute arbitrary commands on a system by manipulating input that is passed to a command execution function.

This vulnerability can lead to unauthorized access, data leakage, or complete compromise of the affected system.

To fix this vulnerability, it is recommended to sanitize the 'options.dir' argument before passing it to the 'exec' function. Additionally, using parameterized queries or prepared statements can help prevent command injection attacks.

A possible workaround is to manually sanitize the 'options.dir' argument before passing it to the 'exec' function. This can be done by removing any potentially dangerous characters or commands from the input.

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