Description
npm-programmatic through 0.0.12 is vulnerable to Command Injection.The packages and option properties are concatenated together without any validation and are used by the 'exec' function directly.
Remediation
References
https://github.com/Manak/npm-programmatic/blob/master/index.js#L18
https://snyk.io/vuln/SNYK-JS-NPMPROGRAMMATIC-564115
Related Vulnerabilities
CVE-2022-46175 Vulnerability in npm package json5
CVE-2019-10773 Vulnerability in npm package @pnpm/package-bins
CVE-2020-17527 Vulnerability in maven package org.apache.tomcat:tomcat-coyote
CVE-2020-36184 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2022-24785 Vulnerability in maven package org.webjars.bowergithub.moment:moment