serial-number@0.4.0 vulnerabilities

Reads the machine's serial number (a.k.a. service/asset tag) or Amazon EC2 instance-id

Direct Vulnerabilities

Known vulnerabilities in the serial-number 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
Command Injection

serial-number is a simple Node.js module for accessing the serial number (a.k.a. Dell Service Tag, asset tag) of the local machine.

Affected versions of this package are vulnerable to Command Injection. The cmdPrefix argument in serialNumber function is used by the exec function without any validation.

PoC by JHU System Security Lab

var root = require("serial-number");
root(function(){},"echo vulnerable > create.txt;");

How to fix Command Injection?

There is no fixed version for serial-number.

*