CVE-2026-145569: lockfile-lint-api 5.2.1 before 5.10.0 Package Name Validation Bypass via ValidatePackageNames

Published Dec 5, 2026
·
Updated

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.

Affected Software

1 affected component
npm/lockfile-lint-api>=5.2.1<5.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/lockfile-lint-api to a version that resolves this vulnerability.

    Fixed in 5.10.0

Event History

Dec 5, 2026
CVE Published
via MITRE·02:43 PM
Data Sourced
via MITRE·02:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Event
via NVD·03:17 PM

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Users of lockfile-lint-api versions 5.2.1 before 5.10.0 are exposed when they validate lockfiles that an attacker can craft or influence. The attack targets workflows that rely on ValidatePackageNames.validate() to enforce package-name checks before npm installation.

2

What must an attacker provide to exploit the bypass?

The attacker must submit a crafted lockfile that declares a trusted package name but uses dot segments in the resolved URL to traverse to a package in an attacker-controlled registry. User interaction is required, consistent with a victim using the affected workflow and installing from that lockfile.

3

How can I tell whether a lockfile may be malicious?

Inspect entries for a mismatch between the declared package name and the package location indicated by the resolved URL. In particular, look for dot segments in resolved URLs that could change the effective registry package path.

4

What version addresses the issue?

The affected range is 5.2.1 before 5.10.0, so version 5.10.0 is the first version identified as outside that range.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203