CVE-2018-12120
nodejs: Debugger port 5858 listens on any interface by default
Severity
ModerateRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · November 27, 2018
Updated · October 9, 2026
Description
Node.js: All versions prior to Node.js 6.15.0: Debugger port 5858 listens on any interface by default: When the debugger is enabled with node --debug or node debug, it listens to port 5858 on all interfaces by default. This may allow remote computers to attach to the debug port and evaluate arbitrary JavaScript. The default interface is now localhost. It has always been possible to start the debugger on a specific interface, such as node --debug=localhost. The debugger was removed in Node.js 8 and replaced with the inspector, so no versions from 8 and later are vulnerable.
Statement
The nodejs RPMs shipped in Red Hat OpenShift Container Platform (OCP) versions 3.6 through 3.10 are vulnerable to this flaw because they contain the affected code. Later versions of OCP used nodejs RPMs delivered from Red Hat Software Collections and Red Hat Enterprise Linux channels.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
-
On any version : Ensure the firewall prevents access to port 5858 on untrusted interfaces.
-
On nodejs 6 : To enforce the debug on a specific interface: $ node --debug=localhost
CVSS / CWE
CVSS 3.0 · 7.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CWE-284 · Improper Access Control