Command Injection in npm-programmatic
Critical severity
GitHub Reviewed
Published
Apr 23, 2020
to the GitHub Advisory Database
•
Updated Feb 1, 2023
Description
Published by the National Vulnerability Database
Apr 7, 2020
Reviewed
Apr 23, 2020
Published to the GitHub Advisory Database
Apr 23, 2020
Last updated
Feb 1, 2023
All versions of
npm-programmatic
are vulnerable to Command Injection. The package fails to sanitize input rules and passes it directly to anexec
call on theinstall
,uninstall
andlist
functions . This may allow attackers to execute arbitrary code in the system if the package name passed to the function is user-controlled.Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
References