CVE-2021-23375
Command Injection in psnode
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
Description
This affects all versions of package psnode. If attacker-controlled user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | psnode | no fix listed |
References
- https://github.com/nrako/psnode
- https://github.com/nrako/psnode/blob/076f623689e4506d3647505daca13b3f482e0c31/lib/index.js#23L59
- https://github.com/nrako/psnode/blob/076f623689e4506d3647505daca13b3f482e0c31/lib/index.js%23L59
- https://nvd.nist.gov/vuln/detail/CVE-2021-23375
- https://snyk.io/vuln/SNYK-JS-PSNODE-1078543
- https://www.npmjs.com/package/psnode