CVE-2025-4759
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-4759 affects versions of the package lockfile-lint-api before 5.9.2. The vulnerability was discovered on April 13, 2025, and publicly disclosed on May 15, 2025. This vulnerability is related to Incorrect Behavior Order: Early Validation in the package URL validation functionality (Snyk Advisory, Wiz Report).

Technical details

The vulnerability exists in the resolved attribute of the package URL validation which can be bypassed by extending the package name. The issue stems from improper validation in ValidatePackageNames.js where the expected URL prefix check lacks a trailing slash. The vulnerability has been assigned a CVSS v4.0 score of 5.5 (Medium) and CVSS v3.1 score of 8.3 (High) (Snyk Advisory, GitHub Gist).

Impact

The vulnerability allows an attacker to bypass the package name validation, potentially leading to the installation of different npm packages than intended. This could result in supply chain attacks where malicious packages are installed instead of the legitimate ones (GitHub Gist).

Mitigation and workarounds

The vulnerability has been fixed in version 5.9.2 of lockfile-lint-api by adding a trailing slash to the expected URL prefix for package validation. Users should upgrade to version 5.9.2 or higher to address this vulnerability (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management