ZDI-26-043: (0Day) npm cli Uncontrolled Search Path Element Local Privilege Escalation Vulnerability

Published Jan 12, 2026
·
Updated

This vulnerability allows local attackers to escalate privileges on affected installations of npm cli. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The ZDI has assigned a CVSS rating of 7.8. The following CVEs are assigned: CVE-2026-0775.

Affected Software

1 affected component
npm/cli

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch ZDI-26-043
  2. Compensating control

    Ensure npm CLI does not load modules from an unsecured location; move/lock down the module search paths so untrusted users cannot place or influence modules that npm CLI will load.

Event History

Jan 12, 2026
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software
Advisory Published
via ZDI·06:00 AM

Frequently Asked Questions

1

What is the severity of ZDI-26-043?

ZDI-26-043 is classified as a local privilege escalation vulnerability.

2

How do I fix ZDI-26-043?

To mitigate ZDI-26-043, ensure that your npm cli is updated to the latest version where the vulnerability has been addressed.

3

Who is affected by ZDI-26-043?

ZDI-26-043 affects installations of npm cli that have not implemented necessary security measures.

4

What can an attacker do with ZDI-26-043?

An attacker can escalate their privileges on the affected system if they can execute low-privileged code.

5

How can I determine if my npm cli installation is vulnerable to ZDI-26-043?

Check your npm cli version and compare it against the version fixed for the ZDI-26-043 vulnerability.

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