keep-module-latest vulnerable to Command Injection due to missing input sanitization
Date: 2023-05
Affected: npm/keep-module-latest
Attack vector: command-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2023-26128
CWE: CWE-20
CWE-77
CWE-78
CVSS: 8.4 (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

All versions of the package keep-module-latest are vulnerable to Command Injection due to missing input sanitization or other checks and sandboxes being employed to the installModule function. **Note:** To execute the code snippet and potentially exploit the vulnerability, the attacker needs to have the ability to run Node.js code within the target environment. This typically requires some level of access to the system or application hosting the Node.js environment.


Mitigations:

Architectural layers (MAESTRO):