CVE-2025-4759
MEDIUM 5.5CVSS 4.0lockfile-lint-api Vulnerable to Incorrect Behavior Order
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.
- Published
- 16 May 2025
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Analyzed
- Weakness
- CWE-179
- Also known as
- GHSA-7cfr-5cjf-32p4
- Sources
- NVDJSONOSV GHSA-7cfr-5cjf-32p4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | MEDIUM 5.5 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L/E:P | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lirantal | lockfile-lint-apicpe:2.3:a:lirantal:lockfile-lint-api:*:*:*:*:*:node.js:*:* |
< 5.9.2 | 5.9.2 |
| OSV | npm | lockfile-lint-api | < 5.9.2 | 5.9.2 |
References
- https://gist.github.com/Xavier59/881aef04940970dc3e738dcbff64151f · Exploit, WEB
- https://github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js%23L51-L63 · Broken Link
- https://github.com/lirantal/lockfile-lint/commit/9e5305bd3e4f0c6acc0d23ec43eac2bd5303b4ca · Patch, WEB
- https://github.com/lirantal/lockfile-lint/pull/204 · Patch, WEB
- https://security.snyk.io/vuln/SNYK-JS-LOCKFILELINTAPI-10169587 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-4759 · ADVISORY
- https://github.com/lirantal/lockfile-lint · PACKAGE
- https://github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js#L51-L63 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 16 May 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 16 May 2025)