All versions of npm-programmatic are vulnerable to Command Injection. The package fails to sanitize input rules and passes it directly to an exec call on the install, uninstall and list functions . This may allow attackers to execute arbitrary code in the system if the package name passed to the function is user-controlled.
No fix is currently available. Consider using an alternative package until a fix is made available.
{
"github_reviewed": true,
"github_reviewed_at": "2020-04-23T20:02:33Z",
"cwe_ids": [
"CWE-20",
"CWE-78"
],
"severity": "CRITICAL",
"nvd_published_at": "2020-04-07T14:15:00Z"
}