CVE-2021-23363
HIGH 8.8CVSS 3.1Arbitrary code execution in kill-by-port
This affects the package kill-by-port before 0.0.2. If (attacker-controlled) user input is given to the killByPort 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.
- Published
- 30 Mar 2021
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-mm4f-47ch-f7hxSNYK-JS-KILLBYPORT-1078531
- Sources
- NVDJSONOSV GHSA-mm4f-47ch-f7hxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kill-by-port_project | kill-by-portcpe:2.3:a:kill-by-port_project:kill-by-port:*:*:*:*:*:node.js:*:* |
< 0.0.2 | 0.0.2 |
| OSV | npm | kill-by-port | < 0.0.2 | 0.0.2 |
References
- https://github.com/GuyMograbi/kill-by-port/blob/16dcbe264b6b4a5ecf409661b42836dd286fd43f/index.js%23L8 · Broken Link
- https://github.com/GuyMograbi/kill-by-port/commit/ea5b1f377e196a4492e05ff070eba8b30b7372c4 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-KILLBYPORT-1078531 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23363 · ADVISORY
- https://github.com/GuyMograbi/kill-by-port · PACKAGE
- https://github.com/GuyMograbi/kill-by-port/blob/16dcbe264b6b4a5ecf409661b42836dd286fd43f/index.js#23L8 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Apr 2021)