JLSEC-2026-1941: On Linux, Node.js ignores certain environment variables if those may have been set by an...
On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running with elevated privileges with the only exception of CAPNETBINDSERVICE. Due to a bug in the implementation of this exception, Node.js incorrectly applies this exception even when certain other capabilities have been set. This allows unprivileged users to inject code that inherits the process's elevated privileges.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects Node.js on Linux when a process runs with elevated privileges and has capabilities configured. The flawed behavior occurs when the process has capabilities beyond the CAP_NET_BIND_SERVICE exception.
What would an attacker need to exploit it?
An unprivileged user would need to be able to set relevant environment variables for the Node.js process. Successful exploitation can result in injected code inheriting the process's elevated privileges.