CVE-2025-4759: Lockfile lint api Lockfile-lint-api Vulnerable To Incorrect Behavior Vulnerability
MODERATECVE-2025-4759 is a MODERATE (CVSS 8.3) lockfile-lint-api vulnerable to incorrect behavior vulnerability (CWE-179: Incorrect Behavior Order: Early Validation) affecting Lockfile lint api libraries in the npm ecosystem. The issue involves lockfile-lint-api vulnerable to incorrect behavior order. Remediation is available by upgrading affected packages to version 5.9.2.
CVE-2025-4759 at a Glance
Security Impact
CVSS: 8.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L).
How to Fix CVE-2025-4759
To remediate this vulnerability, upgrade all affected Lockfile lint api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install lockfile-lint-api@5.9.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls lockfile-lint-api
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-4759, inspect your project dependencies using npm:
npm ls lockfile-lint-api
Analyze the terminal output to locate any version of Lockfile lint api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.9.2), your application is affected.
Note: The npm ls lockfile-lint-api command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-179: Incorrect Behavior Order: Early Validation, where the product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification. In Lockfile lint api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-4759 Affected Lockfile lint api Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lockfile-lint-api
|
npm |
< 5.9.2
|
5.9.2
|
References
Frequently Asked Questions
What is CVE-2025-4759?
Which Lockfile lint api versions are affected?
What version fixes CVE-2025-4759?
Is lockfile-lint-api affected?
What is the CVSS score of CVE-2025-4759?
What CWE is associated with CVE-2025-4759?
How can I check npm dependencies for CVE-2025-4759?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7cfr-5cjf-32p4",
"modified" : "2025-05-16T21:45:31Z",
"published" : "2025-05-16T06:30:24Z",
"aliases" : [ "CVE-2025-4759" ],
"summary" : "lockfile-lint-api Vulnerable to Incorrect Behavior Order",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lockfile-lint-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.9.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-4759"
}, {
"type" : "WEB",
"url" : "https://github.com/lirantal/lockfile-lint/pull/204"
}, {
"type" : "WEB",
"url" : "https://github.com/lirantal/lockfile-lint/commit/9e5305bd3e4f0c6acc0d23ec43eac2bd5303b4ca"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/Xavier59/881aef04940970dc3e738dcbff64151f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lirantal/lockfile-lint"
}, {
"type" : "WEB",
"url" : "https://github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js#L51-L63"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-LOCKFILELINTAPI-10169587"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-179" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-16T21:45:31Z",
"nvd_published_at" : "2025-05-16T05:15:38Z"
}
}