CVE-2021-23360
HIGH 8.8CVSS 3.1Command Injection in killport
This affects the package killport before 1.0.2. 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. Running this PoC will cause the command touch success to be executed, leading to the creation of a file called success.
- Published
- 21 Mar 2021
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-fc42-h7q4-qp8hSNYK-JS-KILLPORT-1078535
- Sources
- NVDJSONOSV GHSA-fc42-h7q4-qp8hJSON
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 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 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 | killport_project | killportcpe:2.3:a:killport_project:killport:*:*:*:*:*:node.js:*:* |
< 1.0.2 | 1.0.2 |
| OSV | npm | killport | < 1.0.2 | 1.0.2 |
References
- https://github.com/ssnau/killport/blob/5268f23ea8f152e47182b263d8f7ef20c12a9f28/index.js%23L9 · Broken Link, WEB
- https://github.com/ssnau/killport/commit/bec8e371f170a12e11cd222ffc7a6e1ae9942638 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-KILLPORT-1078535 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23360 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 21 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Apr 2021)