Read the docs
TI-2022-00748 Aliases CVE-2022-0841GHSA-cr6m-62pq-hmqh

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

VendorProductAffected versionsFixed inStatusSource
ljharbljharb/npm-lockfile2.0.3; 2.0.4—No fix listedCNA
—npm-lockfile (npm)2.0.3 to before 2.0.52.0.5Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:npm-lockfile_project:npm-lockfile:2.0.3:*:*:*:*:node.js:*:*2.0.3VulnerableNpm-lockfile Project
cpe:2.3:a:npm-lockfile_project:npm-lockfile:2.0.4:*:*:*:*:node.js:*:*2.0.4VulnerableNpm-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

  1. 2026-10-02 Threatist record created from CVE-2022-0841
  2. 2026-10-03 Alias added: GHSA-cr6m-62pq-hmqh

References

  • 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