CVE-2021-23355
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-23355 is a vulnerability affecting the ps-kill npm package, which was disclosed on February 23, 2021, and published on March 15, 2021. The vulnerability allows for Arbitrary Command Injection in all versions of the ps-kill package, which is designed to kill processes with ease (Snyk).

Technical details

The vulnerability is classified as a Command Injection vulnerability (CWE-77) with a CVSS v3.1 base score of 9.8 (critical) according to NVD, while Snyk rates it at 5.6 (medium). The vulnerability exists due to the use of the child_process exec function without proper input sanitization in the index.js file (Snyk).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary commands through the kill function if attacker-controlled user input is provided. The impact affects the confidentiality, integrity, and availability of the system, though each with limited direct consequences (Snyk).

Exploitability

The vulnerability has a proof-of-concept exploit available. A sample exploit involves using the kill function with malicious input: var ps_kill = require('ps-kill'); ps_kill.kill('$(touch success)',function(){}); This allows for arbitrary command execution (Snyk).

Mitigation and workarounds

There is no fixed version available for the ps-kill package. Users are advised to consider alternative packages or implement additional input validation before passing data to the kill function (Snyk).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management