CVE-2021-23355
CRITICAL 9.8CVSS 3.1Command Injection in ps-kill
This affects all versions of package ps-kill. If (attacker-controlled) user input is given to the kill 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 in the index.js file. PoC (provided by reporter): var ps_kill = require('ps-kill'); ps_kill.kill('$(touch success)',function(){});
- Published
- 15 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-7qmm-q394-fmch
- Sources
- NVDJSONOSV GHSA-7qmm-q394-fmchJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ps-kill_project | ps-killcpe:2.3:a:ps-kill_project:ps-kill:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | ps-kill | <= 1.0.0 |
References
- https://snyk.io/vuln/SNYK-JS-PSKILL-1078529 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23355 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 15 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 19 Mar 2021)