Description
All versions of the package n158 are vulnerable to Command Injection due to improper input sanitization in the 'module.exports' 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/dsilva2401/n158/blob/master/src/cli/initProject.js%23L8
https://security.snyk.io/vuln/SNYK-JS-N158-3183746
Related Vulnerabilities
CVE-2023-24057 Vulnerability in maven package ca.uhn.hapi.fhir:org.hl7.fhir.validation
CVE-2018-11011 Vulnerability in maven package cc.ryanc:halo
CVE-2023-23850 Vulnerability in maven package org.jenkins-ci.plugins:synopsys-coverity
CVE-2019-10361 Vulnerability in maven package org.jenkins-ci.plugins.m2release:m2release
CVE-2021-4245 Vulnerability in maven package org.webjars.npm:rfc6902