Description
Versions of the package lockfile-lint-api before 5.9.2 are vulnerable to Incorrect Behavior Order: Early Validation via the resolved attribute of the package URL validation which can be bypassed by extending the package name allowing an attacker to install other npm packages than the intended one.
Problem types
Incorrect Behavior Order: Early Validation
Credits
Xavier Bruni
References
security.snyk.io/vuln/SNYK-JS-LOCKFILELINTAPI-10169587
gist.github.com/Xavier59/881aef04940970dc3e738dcbff64151f
github.com/...src/validators/ValidatePackageNames.js#L51-L63
github.com/lirantal/lockfile-lint/pull/204
github.com/...ommit/9e5305bd3e4f0c6acc0d23ec43eac2bd5303b4ca