description: 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 CAP_NET_BIND_SERVICE.
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:
{
defaultStatus: unaffected
vendor: Node.js
product: Node.js
versions:
version: 21.6.0, status: affected, lessThanOrEqual: 21.6.0, versionType: semver
version: 20.11.0, status: affected, lessThanOrEqual: 20.11.0, versionType: semver
version: 18.19.0, status: affected, lessThanOrEqual: 18.19.0, versionType: semver
}
metrics:
cvssV3_0: [
version: 3.0
vectorString: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
baseScore: 7.5
baseSeverity: HIGH
]