-
Couldn't load subscription status.
- Fork 247
Closed
Description
Motivation ("The Why")
A user was concerned that a malicious person could edit a lockfile to replace packages. This attack is interesting, because the default diff view in tools like GitHub commits view sometimes hide package-lock.json/shrinkwrap.json changes.
They opened similar issues to pnpm and yarn.
pnpm/pnpm#4361
yarnpkg/berry#4136
Example
Complete examples are listed in npm/cli#4447
How
We currently use package-lock.json as a trusted state for which exact packages should be installed.
Desired Behaviour
There are specific types of inconsistencies that could be analyzed or caught when reifying, like validating registry mapping with config.
References
thescientist13 and webdevelopland
Metadata
Metadata
Assignees
Labels
No labels