Description
rpi through 0.0.3 allows execution of arbritary commands. The variable pinNumbver in function GPIO within src/lib/gpio.js is used as part of the arguement of exec function without any sanitization.
Remediation
References
https://github.com/xseignard/rpi/blob/master/src/lib/gpio.js#L47
https://snyk.io/vuln/SNYK-JS-RPI-548942