CVE-2019-10801
Description
enpeem npm package ≤2.2.0 suffers from command injection via the unsanitized 'options.dir' argument passed to exec().
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
enpeem npm package ≤2.2.0 suffers from command injection via the unsanitized 'options.dir' argument passed to exec().
Vulnerability
Overview
The enpeem package, a lightweight wrapper for accessing npm programmatically, is vulnerable to command injection in versions through 2.2.0. The root cause is that the options.dir argument is passed directly to the exec function without any sanitization [1][3]. This allows an attacker to inject arbitrary operating system commands.
Exploitation
An attacker can exploit this by controlling the options.dir value, for example through a malicious package or user-supplied input. The proof-of-concept provided by JHU System Security Lab demonstrates injecting commands such as & echo vulnerable > create.txt & into the production option, which is then used as options.dir [1]. No authentication is required if the attacker can supply the options object.
Impact
Successful exploitation results in arbitrary command execution on the system running enpeem. This can lead to full compromise of the application and its host environment, including data theft, malware installation, or further lateral movement [1].
Mitigation
As of the advisory, there is no fixed version for enpeem. The repository has been archived and is read-only [3]. Users are advised to avoid using enpeem and migrate to alternative packages that properly sanitize inputs [1].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
enpeemnpm | <= 2.2.0 | — |
Affected products
2- enpeem/enpeemdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-hmw2-mvvh-jf5jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-10801ghsaADVISORY
- github.com/balderdashy/enpeem/blob/master/index.jsghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JS-ENPEEM-559007ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.