{"id":"CVE-2022-0841","aliases":["GHSA-cr6m-62pq-hmqh"],"url":"https://o3.security/vulnerability/CVE-2022-0841","summary":"OS Command Injection in ljharb/npm-lockfile","details":"npm-lockfile safely generates an npm lockfile and output it to the filename of your choice. npm-lockfile before 2.0.4 does not santize unsafe external input and invoke sensitive command execution API with the input, causing command injection vulnerability. A fix was released in version 2.0.5.","published":"2022-03-03T15:50:10Z","modified":"2026-10-28T02:30:38.155204285Z","cvss":{"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"},"epss":{"score":0.02513,"percentile":0.85197,"asOf":"2026-11-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"npm-lockfile","fixedVersion":"2.0.5"}],"fix":{"url":"https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8","label":"ljharb/npm-lockfile@bfdb848"},"references":[{"type":"WEB","url":"https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0841.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0841"},{"type":"FIX","url":"https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8"},{"type":"PACKAGE","url":"https://github.com/ljharb/npm-lockfile"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:38.155204285Z"}}