OS Command Injection in ljharb/npm-lockfile
Priority MEDIUM 47CWE-78Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
OS Command Injection in GitHub repository ljharb/npm-lockfile in v2.0.3 and v2.0.4.
Why it matters now
EPSS 0.02513 84th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed npm-lockfile (npm): 2.0.5
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ljharb | ljharb/npm-lockfile | 2.0.3; 2.0.4 | — | No fix listed | CNA |
| — | npm-lockfile (npm) | 2.0.3 to before 2.0.5 | 2.0.5 | Patch available | GHSA-cr6m-62pq-hmqh |
- ljharb/npm-lockfile Vendorljharb Affected 2.0.3; 2.0.4 Fixed in — No fix listed CNA
- npm-lockfile (npm) Vendor— Affected 2.0.3 to before 2.0.5 Fixed in 2.0.5 Patch available GHSA-cr6m-62pq-hmqh
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:npm-lockfile_project:npm-lockfile:2.0.3:*:*:*:*:node.js:*:* | 2.0.3 | Vulnerable | Npm-lockfile Project |
| cpe:2.3:a:npm-lockfile_project:npm-lockfile:2.0.4:*:*:*:*:node.js:*:* | 2.0.4 | Vulnerable | Npm-lockfile Project |
- cpe:2.3:a:npm-lockfile_project:npm-lockfile:2.0.3:*:*:*:*:node.js:*:* Versions 2.0.3 Vulnerable ·Npm-lockfile Project
- cpe:2.3:a:npm-lockfile_project:npm-lockfile:2.0.4:*:*:*:*:node.js:*:* Versions 2.0.4 Vulnerable ·Npm-lockfile Project
Remediation
- Fix · GHSA-cr6m-62pq-hmqh npm-lockfile (npm) Fixed in 2.0.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
Not affected: 2 products
- Red Hat Enterprise Linux 8
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2022-0841
- 2026-10-03 Alias added: GHSA-cr6m-62pq-hmqh
References
More ljharb vulnerabilities
- TI-2026-74516 qs stringify throws TypeError on uncoercible array elements in comma format CVSS 4.0MEDIUM 6.3
- TI-2026-56824 qs.stringify throws TypeError on objects with a non-callable constructor.isBuffer property CVSS 4.0MEDIUM 6.3
- TI-2026-07665 qs.stringify crashes on null/undefined entries in comma-format arrays under encodeValuesOnly CVSS 4.0MEDIUM 6.3
- TI-2026-56916 Resource allocation without limits in ljharb qs CVSS 4.0MEDIUM 6.3
- TI-2026-69286 Prototype pollution in traverse set() modifies built-in prototypes CVSS 4.0MEDIUM 6.9
- TI-2026-81027 Unencoded keys in qs.stringify allow query parameter injection CVSS 4.0MEDIUM 6.3
Sources
- CVE-2022-0841 · CVE Program
- CVE-2022-0841 · NVD
- FIRST EPSS
- GHSA-cr6m-62pq-hmqh · GitHub Advisory Database · CC BY 4.0
- CVE-2022-0841 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences