PT-2022-3577

CVE-2022-29080

·

Published

2022-04-12

·

Updated

2023-08-08

Description by

CVSS 2.0
10
Critical
MetricsAV: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.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-M7XQ-8JP8-RJ2C
Found an issue in the description? Have something to add? Feel free to write us 👾