Incorrect Behavior Order: Early Validation Affecting lockfile-lint-api package, versions <5.9.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-LOCKFILELINTAPI-10169587
  • published15 May 2025
  • disclosed13 Apr 2025
  • creditXavier Bruni

Introduced: 13 Apr 2025

CVE-2025-4759  (opens in a new tab)
CWE-179  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade lockfile-lint-api to version 5.9.2 or higher.

Overview

lockfile-lint-api is a Lint an npm or yarn lockfile to analyze and detect issues

Affected versions of this package 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.

CVSS Base Scores

version 4.0
version 3.1