ZDI-26-043: (0Day) npm cli Uncontrolled Search Path Element Local Privilege Escalation Vulnerability
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch ZDI-26-043 - 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
Frequently Asked Questions
What is the severity of ZDI-26-043?
ZDI-26-043 is classified as a local privilege escalation vulnerability.
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.
Who is affected by ZDI-26-043?
ZDI-26-043 affects installations of npm cli that have not implemented necessary security measures.
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.
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.