{"schemaVersion":3,"id":"CVE-2022-0841","aliases":["GHSA-cr6m-62pq-hmqh"],"status":"published","duplicateOf":null,"title":"OS Command Injection in ljharb/npm-lockfile","description":"OS Command Injection in GitHub repository ljharb/npm-lockfile in v2.0.3 and v2.0.4.","dates":{"published":"2022-03-03T15:50:10.000Z","modified":"2024-08-02T23:40:04.446Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":3.8,"severity":"low","vector":"CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":3.8,"severity":"low","vector":"CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02513,"percentile":0.84668,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.02513},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02513,"percentile":0.84668}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02513,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02513,"percentile":0.84668}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_EB2DA6D6AA2684C7","name":"Exploit Reference (huntr.dev)","source":"reference","url":"https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"ljharb","product":"ljharb/npm-lockfile","name":"ljharb/npm-lockfile","label":"ljharb/npm-lockfile","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0.3","noFixRecorded":false,"fixedIn":null},{"text":"2.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0.3 | 2.0.4","eol":null,"hubHref":"/vendor/ljharb/ljharbnpm-lockfile"},{"vendor":"npm-lockfile_project","product":"npm-lockfile","name":"npm-lockfile","label":"npm-lockfile","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0.3","noFixRecorded":false,"fixedIn":null},{"text":"2.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0.3 | 2.0.4","eol":null,"hubHref":"/vendor/npm-lockfile_project/npm-lockfile"},{"vendor":"Npm","product":"npm-lockfile","name":"npm-lockfile","label":"npm-lockfile","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/npm-lockfile","purlType":"npm","versions":[{"text":"≥ 2.0.3, < 2.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.3, < 2.0.5","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1","label":"huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1","hostname":"huntr.dev","tags":["X Refsource CONFIRM","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8","label":"github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0841","label":"nvd.nist.gov/vuln/detail/CVE-2022-0841","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ljharb/npm-lockfile","label":"github.com/ljharb/npm-lockfile","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-03-03T15:50:10.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T23:40:04.446Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T17:15:44.913Z","stale":false,"partial":false}}