# CVE-2025-4759: lockfile-lint-api Vulnerable to Incorrect Behavior Order

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **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:P`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.71% (percentile 49, 2026-11-26)
- **CWE:** CWE-179
- **Aliases:** GHSA-7cfr-5cjf-32p4
- **Published:** 2025-05-16T05:00:04.621Z
- **Modified:** 2026-06-17T09:33:57.200Z

## Who should check

- Projects that depend on npm package lockfile-lint-api (\< 5.9.2)
- Anyone running lockfile-lint-api \< 5.9.2

## 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

- npm `lockfile-lint-api`: affected \< 5.9.2; fixed 5.9.2 (osv)
- lockfile-lint-api: \< 5.9.2 (cvelist)

## Mitigation

- Upgrade lockfile-lint-api to 5.9.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-4759>
- patch: <https://github.com/lirantal/lockfile-lint/pull/204>
- patch: <https://github.com/lirantal/lockfile-lint/commit/9e5305bd3e4f0c6acc0d23ec43eac2bd5303b4ca>
- exploit: <https://gist.github.com/Xavier59/881aef04940970dc3e738dcbff64151f>
- other: <https://security.snyk.io/vuln/SNYK-JS-LOCKFILELINTAPI-10169587>
- other: <https://github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js%23L51-L63>
- other: <https://github.com/lirantal/lockfile-lint>
- other: <https://github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js#L51-L63>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-4759>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7cfr-5cjf-32p4> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-4759> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-4759>
