# CVE-2022-0841: OS Command Injection in ljharb/npm-lockfile

- Severity: Low 3.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.51%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-03T15:50:10.000Z
- Modified: 2026-06-17T04:21:21.170Z
- Also known as: GHSA-cr6m-62pq-hmqh
- Weaknesses: CWE-78
- Assigned by: @huntrdev

## Description

OS Command Injection in GitHub repository ljharb/npm-lockfile in v2.0.3 and v2.0.4.

(As written by CVE List.)

## Affected

- ljharb ljharb/npm-lockfile: 2.0.3; 2.0.4
- npm-lockfile (npm): from 2.0.3 before 2.0.5
- npm-lockfile_project npm-lockfile: 2.0.3; 2.0.4

## Every score

- @huntrdev: CVSS:3.0 3.8 Low `CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1> (exploit, patch, third-party-advisory, web)
- <https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0841> (advisory)
- <https://github.com/ljharb/npm-lockfile> (package)

## Sources

- CVE List: [CVE-2022-0841](https://www.cve.org/CVERecord?id=CVE-2022-0841), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-cr6m-62pq-hmqh](https://github.com/advisories/GHSA-cr6m-62pq-hmqh), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-0841](https://nvd.nist.gov/vuln/detail/CVE-2022-0841), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0841 · Whole record: https://cve.day/CVE-2022-0841.json · Rebuilt by cve.day 2026-11-25T22:58:09.899Z
