Description
This affects all versions of package portkiller. If (attacker-controlled) user input is given, 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/indatawetrust/portkiller/blob/f1f1c5076d9c5d60e8dd3930e98d665d8191aa7a/index.js%23L10
https://snyk.io/vuln/SNYK-JS-PORTKILLER-1078537
Related Vulnerabilities
CVE-2022-40929 Vulnerability in maven package com.xuxueli:xxl-job-core
CVE-2021-37695 Vulnerability in maven package org.webjars.bowergithub.ckeditor:ckeditor4
CVE-2020-26234 Vulnerability in maven package org.opencastproject:opencast-kernel
CVE-2022-2047 Vulnerability in maven package org.eclipse.jetty:jetty-http
CVE-2022-35949 Vulnerability in maven package org.webjars.npm:undici