CVE-2022-25171
p4 vulnerable to Command Injection due to improper input sanitization
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
Description
The package p4 before 0.0.7 are vulnerable to Command Injection via the run() function due to improper input sanitization
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | p4 | 0.0.7 |
References
- https://github.com/natelong/p4
- https://github.com/natelong/p4/blob/master/p4.js#23L12
- https://github.com/natelong/p4/blob/master/p4.js%23L12
- https://github.com/natelong/p4/commit/ae42e251beabf67c00539ec0e1d7aa149ca445fb
- https://nvd.nist.gov/vuln/detail/CVE-2022-25171
- https://security.snyk.io/vuln/SNYK-JS-P4-3167330