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-hmqh
JSON: 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: Repository: https://github.com/ljharb/npm-lockfile
Blast Radius: 6.8

Affected Packages

npm:npm-lockfile
Dependent packages: 2
Dependent 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