Advisories

lockfile-lint-api 5.2.1 before 5.10.0 Package Name Validation Bypass via ValidatePackageNames

Go back
Severity
medium
Date
Affecting
  • lockfile-lint-api >= 5.2.1, < 5.10.0

CWE
  • CWE-180 Incorrect Behavior Order: Validate Before Canonicalize
CVSS
6.0
CVSS V4 Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Credit
Vectrain51
Description
lockfile-lint-api 5.2.1 before 5.10.0 contains a validation bypass vulnerability in ValidatePackageNames.validate() that allows attackers to evade package name checks by using dot segments in resolved URLs. Attackers can submit a crafted lockfile declaring a trusted package name with a resolved path traversing to their own registry package, causing npm to install it instead.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.