Description
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.
Remediation
References
https://github.com/liujunyang/keep-module-latest/blob/master/index.js%23L50
https://security.snyk.io/vuln/SNYK-JS-KEEPMODULELATEST-3157165
Related Vulnerabilities
CVE-2023-47324 Vulnerability in maven package org.silverpeas.core:silverpeas-core-rs
CVE-2021-42550 Vulnerability in maven package ch.qos.logback:logback-core
CVE-2022-23624 Vulnerability in npm package frourio-express
CVE-2021-43138 Vulnerability in maven package org.webjars:async
CVE-2020-6462 Vulnerability in maven package org.webjars.npm:electron