CVE-2019-10804
Description
serial-number Node.js module through 1.3.0 allows command injection via unsanitized cmdPrefix argument passed to exec().
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
serial-number Node.js module through 1.3.0 allows command injection via unsanitized cmdPrefix argument passed to exec().
The serial-number package through version 1.3.0 contains a command injection vulnerability. The cmdPrefix argument in the serialNumber function is passed directly to Node's exec() function without any validation or sanitization [1]. The vulnerable code path can be seen in the module's source on GitHub [3].
An attacker can exploit this by providing a malicious string as the second argument to serialNumber(). The proof-of-concept provided by JHU System Security Lab shows that passing a string containing injected commands will cause them to be executed on the system [1]. No special authentication is required if the attacker can control the input to this function.
Successful exploitation allows arbitrary command execution on the host system with the privileges of the Node.js process. This could lead to a full system compromise depending on the context where the module is used. The impact is classified as critical by NVD with a CVSS v3.1 base score of 9.8 [2].
As of the publication date, no fix is available for the serial-number package. The recommended mitigation is to avoid using the vulnerable cmdPrefix parameter or to switch to an alternative module that does not have this vulnerability [1].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
serial-numbernpm | <= 1.3.0 | — |
Affected products
2- serial-number/serial-numberdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-3fw4-4h3m-892hghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-10804ghsaADVISORY
- github.com/es128/serial-number/blob/master/index.jsghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JS-SERIALNUMBER-559010ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.