CVE-2019-10804 json
OS Command Injection in serial-number
published 2020-02-28 6 y ago modified 2026-07-08 4 mo ago also GHSA-3fw4-4h3m-892h , EUVD-2021-0746
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.8%
- EPSS 2.8% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
serial-number through 1.3.0 allows execution of arbritary commands. The "cmdPrefix" argument in serialNumber function is used by the "exec" function without any validation.
Exploit prediction
2.84% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-SERIALNUMBER-559010 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | serial-number | <=1.3.0 |
no fix listed |
Affected products
- n/a serial-number
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
snyk.io
/vuln/SNYK-JS-SERIALNUMBER-559010
web, exploit, third-party-advisory
-
github.com
/es128/serial-number/blob/master/index.js#L106
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-10804
advisory
Sources
- CVE List CVE-2019-10804
- GitHub Advisory GHSA-3fw4-4h3m-892h
- NVD CVE-2019-10804
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.