PT-2022-3577 · Npm · Npm-Dependency-Versions
Xiaofen9
·
Published
2022-04-12
·
Updated
2023-08-08
·
CVE-2022-29080
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
npm-dependency-versions versions 0.3.0 and earlier
Description
The issue is related to insufficient argument checking in the npm-dependency-versions package, which can lead to command injection. An attacker can exploit this by calling dependencyVersions with a JSON object containing a
pkgs key and shell metacharacters in a value, potentially allowing remote execution of arbitrary commands.Recommendations
For versions 0.3.0 and earlier, consider disabling the
dependencyVersions function until a patch is available to prevent command injection attacks. Restrict access to the dependencyVersions function to minimize the risk of exploitation. Avoid using the pkgs key in the JSON object passed to the dependencyVersions function until the issue is resolved.Exploit
Fix
OS Command Injection
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Npm-Dependency-Versions