Description
This affects the package portprocesses before 1.0.5. If (attacker-controlled) user input is given to the killProcess 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.
Remediation
References
https://github.com/rrainn/PortProcesses/blob/fffceb09aff7180afbd0bd172e820404b33c8299/index.js%23L23
https://github.com/rrainn/PortProcesses/commit/86811216c9b97b01b5722f879f8c88a7aa4214e1
https://github.com/rrainn/PortProcesses/security/advisories/GHSA-vm67-7vmg-66vm
https://snyk.io/vuln/SNYK-JS-PORTPROCESSES-1078536
Related Vulnerabilities
CVE-2017-9791 Vulnerability in maven package org.apache.struts:struts2-struts1-plugin
CVE-2023-2976 Vulnerability in maven package com.google.guava:guava
CVE-2019-0205 Vulnerability in maven package org.webjars.bower:thrift
CVE-2022-34298 Vulnerability in maven package org.openidentityplatform.openam:openam-auth-nt
CVE-2020-7751 Vulnerability in maven package org.webjars.npm:pathval