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

- Severity: Medium 6.9 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-16T05:00:04.621Z
- Modified: 2026-06-17T09:33:57.200Z
- Also known as: GHSA-7cfr-5cjf-32p4
- Weaknesses: CWE-179
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- lockfile-lint-api: before 5.9.2
- lockfile-lint-api (npm): before 5.9.2
- lirantal lockfile-lint-api: before 5.9.2

## Every score

- snyk: CVSS:4.0 6.9 Medium `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`
- snyk: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P`
- GitHub: CVSS:3.1 8.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://gist.github.com/Xavier59/881aef04940970dc3e738dcbff64151f> (exploit, web)
- <https://security.snyk.io/vuln/SNYK-JS-LOCKFILELINTAPI-10169587> (third-party-advisory, 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/pull/204> (patch, web)
- <https://github.com/lirantal/lockfile-lint/commit/9e5305bd3e4f0c6acc0d23ec43eac2bd5303b4ca> (patch, 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)

## Sources

- CVE List: [CVE-2025-4759](https://www.cve.org/CVERecord?id=CVE-2025-4759), CVE Terms of Use, modified 2025-05-16
- GitHub Advisory Database: [GHSA-7cfr-5cjf-32p4](https://github.com/advisories/GHSA-7cfr-5cjf-32p4), CC-BY-4.0, modified 2025-05-16
- NVD: [CVE-2025-4759](https://nvd.nist.gov/vuln/detail/CVE-2025-4759), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-4759 · Whole record: https://cve.day/CVE-2025-4759.json · Rebuilt by cve.day 2026-11-25T22:58:58.118Z
