CVE-2025-4759
lockfile-lint-api Vulnerable to Incorrect Behavior Order
Also known as GHSA-7cfr-5cjf-32p4
Mitigation
- Upgrade lockfile-lint-api to 5.9.2 or later.
Who should check
- Projects that depend on npm package lockfile-lint-api (< 5.9.2)
- Anyone running lockfile-lint-api < 5.9.2
Vulnerability facts
- Affected
- lockfile-lint-api < 5.9.2
- Fixed in
- 5.9.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v4.0, CNA)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:POpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: Low
- Exploit maturity: Proof of concept
- EPSS
- 0.71% chance of exploitation in 30 days (percentile 49, 2026-11-26)
- CWE
- CWE-179
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm lockfile-lint-api | < 5.9.2 | 5.9.2 | osv |
| lockfile-lint-api | < 5.9.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-4759. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-4759.md Affected: lockfile-lint-api < 5.9.2 Fixed in: 5.9.2 Steps: 1. Search this machine and project for lockfile-lint-api (npm), lockfile-lint-api: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
Other
- https://security.snyk.io/vuln/SNYK-JS-LOCKFILELINTAPI-10169587
- https://github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js%23L51-L63
- https://github.com/lirantal/lockfile-lint
- https://github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js#L51-L63
FAQ
Is CVE-2025-4759 being exploited?
There is no confirmed exploitation: CVE-2025-4759 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.71% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-4759?
Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-4759?
lockfile-lint-api < 5.9.2.
Is there a fix for CVE-2025-4759?
Yes. Fixed in 5.9.2. Upgrade lockfile-lint-api to 5.9.2 or later.
How do I check if I'm affected by CVE-2025-4759?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.