CVE-2021-23363

Description

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.

Severity
MEDIUM
CVSS v3
6.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P · source cna
Exploit chance (EPSS)
1.765%
chance of exploitation in the next 30 days
higher than 78.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-03-30Published by the CNA15:00 UTC
  2. 2021-04-13GitHub advisory published (GHSA-mm4f-47ch-f7hx)14 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-mm4f-47ch-f7hx, affected packages:

PackageVulnerable versionsFixed in
npm kill-by-portbefore 0.0.20.0.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
kill-by-port_project kill-by-portbefore 0.0.2fixed in 0.0.20.0.2

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources