Advisory

GHSA-cr6m-62pq-hmqh

Also known as: CVE-2022-0841

Summary

OS Command injection in npm-lockfile

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-03-04 00:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

npm-lockfile

npm · All systems

Affected

  • introduced 2.0.3, fixed 2.0.5 (semver)

Fixed versions

2.0.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences