npm
CVE-2026-145569
lockfile-lint-api 5.2.1 before 5.10.0 Package Name Validation Bypass via ValidatePackageNames
- Severity
- Medium 6.0
- Published
- 5 Dec 2026
- Last changed
- 5 Dec 2026
- Added to UpHeron
- 5 Dec 2026
- Fixed in
- 5.10.0
- Weakness
- CWE-180
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to view a page or file
- Attacker can
- Change data
- CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
lockfile-lint-api 5.2.1 before 5.10.0 contains a validation bypass vulnerability in ValidatePackageNames.validate() that allows attackers to evade package name checks by using dot segments in resolved URLs. Attackers can submit a crafted lockfile declaring a trusted package name with a resolved path traversing to their own registry package, causing npm to install it instead.
Affected software
| Software | Affected versions |
|---|---|
lockfile-lint-apinpm · osv:npm:lockfile-lint-api |
|
About lockfile-lint-api
- Weekly downloads (npm)
- 587,709npm, 5 Dec 2026
This is the only vulnerability in lockfile-lint-api in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-145569