Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lockfile-lint-api
  4. ›
  5. CVE-2025-4759

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

May 16, 2025

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.

References

  • gist.github.com/Xavier59/881aef04940970dc3e738dcbff64151f
  • github.com/advisories/GHSA-7cfr-5cjf-32p4
  • github.com/lirantal/lockfile-lint
  • github.com/lirantal/lockfile-lint/blob/89b5cad028df4d77bab2b73ac93bc61e392668ab/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js
  • github.com/lirantal/lockfile-lint/commit/9e5305bd3e4f0c6acc0d23ec43eac2bd5303b4ca
  • github.com/lirantal/lockfile-lint/pull/204
  • nvd.nist.gov/vuln/detail/CVE-2025-4759
  • security.snyk.io/vuln/SNYK-JS-LOCKFILELINTAPI-10169587

Code Behaviors & Features

Detect and mitigate CVE-2025-4759 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.9.2

Fixed versions

  • 5.9.2

Solution

Upgrade to version 5.9.2 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-179: Incorrect Behavior Order: Early Validation

Source file

npm/lockfile-lint-api/CVE-2025-4759.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:45 +0000.