All reports
Critical

OS Command injection in npm-lockfile

Affected versions

Affected versions
>= 2.0.3, < 2.0.5
Fixed version
2.0.5

Exploitation

CVE-2022-0841

Probability of exploitation in the next 30 days: 2.51%

FIRST EPSS · 2026-11-21

Description

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.

Links

Credits

  • ljharb