network@0.4.1 vulnerabilities

Cross platform network utilities for Node.js (gateway_ip, MAC address, etc)

Direct Vulnerabilities

Known vulnerabilities in the network package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Arbitrary Command Injection

network is a the missing network utilities in Node.js.

Affected versions of this package are vulnerable to Arbitrary Command Injection due to use of the child_process exec function without input sanitization. If (attacker-controlled) user input is given to the mac_address_for function of the package, it is possible for the attacker to execute arbitrary commands on the operating system that this package is being run on.

How to fix Arbitrary Command Injection?

Upgrade network to version 0.7.0 or higher.

<0.7.0