Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. npm-lockfile
  4. ›
  5. CVE-2022-0841

CVE-2022-0841: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

March 3, 2022 (updated March 9, 2022)

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

References

  • github.com/advisories/GHSA-cr6m-62pq-hmqh
  • github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8
  • huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1
  • nvd.nist.gov/vuln/detail/CVE-2022-0841

Code Behaviors & Features

Detect and mitigate CVE-2022-0841 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.3 up to 2.0.4

Fixed versions

  • 2.0.5

Solution

Upgrade to version 2.0.5 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/npm-lockfile/CVE-2022-0841.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.