macaddress@0.2.9 vulnerabilities

Get the MAC addresses (hardware addresses) of the hosts network interfaces.

Direct Vulnerabilities

Known vulnerabilities in the macaddress 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
  • M
Arbitrary File Read

macaddress is a library that gets the MAC addresses (hardware addresses) of the hosts network interfaces.

Affected versions of this package are vulnerable to Arbitrary File Read. By prepending ../../.. to the "interface" name, this line of code can be asked read a file from anywhere on the filesystem as long as that file is named address.

Note: This is relevant only for Linux OS implementation.

How to fix Arbitrary File Read?

Upgrade macaddress to version 0.4.3 or higher.

<0.4.3