ADVISORIES

GitHub Advisory Database

GHSA-cr6m-62pq-hmqh

OS Command injection in npm-lockfile

Critical CVE-2022-0841

Details

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.

Affected packages

EcosystemPackageAffected versions
npmnpm-lockfile
From 2.0.3 before 2.0.5 (fixed in 2.0.5)

References