CVE-2022-0841: OS Command Injection in ljharb/npm-lockfile
Modified
AliasesGHSA-cr6m-62pq-hmqh
Published 03-03-2022Last modified 02-08-2024
Vulnerability summary
CVE-2022-0841 is a high (CVSS 10.0) OS Command Injection vulnerability in ljharb ljharb/npm-lockfile. EPSS estimates a 2.51% chance of exploitation in the next 30 days, higher than 84.6% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
10.0/10
010
High · v2.0 (NVD)EPSS score
2.51%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference
Timeline
- 03-03-2022PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
OS Command Injection in GitHub repository ljharb/npm-lockfile in v2.0.3 and v2.0.4.
CVSS metrics
5 scores · 3 sources · 3 versionsCritical 9.8Preferred score · OSV · Npm (Ecosystem advisory) · calculated from vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 2 agree
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Low 3.8Preferred score · CVE.org (CNA)
CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:NSourcesAll 2 agree
- NVDNIST3.8LowCVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
High 10.0Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:C/I:C/A:CSourcesSingle source
EPSS trend
Probability
2.51%
Chance of exploitation in the next 30 days
Percentile
85%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.51% on 22-09-2026
22-09-202622-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.dev)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Ljharb1 product
- ljharb/npm-lockfile2.0.3 | 2.0.4
Npm1 product
- npm-lockfile≥ 2.0.3, < 2.0.5
Npm-lockfile_project1 product
- npm-lockfile2.0.3 | 2.0.4
3 vendors · 3 products
References
4 links- huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1X Refsource CONFIRMWEBExploitPatchThird Party Advisory
- github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8X Refsource MISCWEBPatchThird Party Advisory