Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1jcjZtLTYycHEtaG1xaM0wAQ
OS Command injection in npm-lockfile
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.
Permalink: https://github.com/advisories/GHSA-cr6m-62pq-hmqhJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jcjZtLTYycHEtaG1xaM0wAQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 2 years ago
Updated: over 1 year ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-cr6m-62pq-hmqh, CVE-2022-0841
References:
- https://nvd.nist.gov/vuln/detail/CVE-2022-0841
- https://github.com/ljharb/npm-lockfile/commit/bfdb84813260f0edbf759f2fde1e8c816c1478b8
- https://huntr.dev/bounties/4f806dc9-2ecd-4e79-997e-5292f1bea9f1
- https://github.com/advisories/GHSA-cr6m-62pq-hmqh
Blast Radius: 6.8
Affected Packages
npm:npm-lockfile
Dependent packages: 2Dependent repositories: 5
Downloads: 30,821 last month
Affected Version Ranges: >= 2.0.3, < 2.0.5
Fixed in: 2.0.5
All affected versions: 2.0.3, 2.0.4
All unaffected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 2.0.0, 2.0.1, 2.0.2, 2.0.5, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7