Unintended package installation via prefix-only URL validation
Published May 16, 2025 · Updated May 16, 2025
Incorrect package validation in Liran Tal lockfile-lint-api before 5.9.2 allows attackers to install unintended npm packages. ValidatePackageNames builds an expected resolved-URL prefix without a trailing slash and accepts any resolved value beginning with it, so a longer package name passes. Exploitation requires a crafted lockfile entry whose resolved URL starts with the intended name; downstream installation can fetch a different package.
Summary
What happened
Incorrect package validation in Liran Tal lockfile-lint-api before 5.9.2 allows attackers to install unintended npm packages. ValidatePackageNames builds an expected resolved-URL prefix without a trailing slash and accepts any resolved value beginning with it, so a longer package name passes. Exploitation requires a crafted lockfile entry whose resolved URL starts with the intended name; downstream installation can fetch a different package.
The record
- CVE
- CVE-2025-4759
- Published
- May 16, 2025
- Updated
- May 16, 2025
- Vendor
- Liran Tal
- Product
- lockfile-lint-api
- Classifications
- CWE-179, T1195.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 16, 2025CVE publishedPublication date reported by the CVE source.
- May 16, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <5.9.2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- CVE-2025-4759 package-name prefix proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo