First published: Wed Nov 28 2018(Updated: )
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.
Credit: cve-request@iojs.org
Affected Software | Affected Version | How to fix |
---|---|---|
Langgenius Dify Node.js | >=6.0.0<6.15.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-12120 is considered a medium severity vulnerability due to the risk of unauthorized remote access to the debugger.
To fix CVE-2018-12120, upgrade Node.js to version 6.15.0 or later to ensure the debugger only listens on localhost by default.
CVE-2018-12120 affects all versions of Node.js prior to 6.15.0 that have the debugger enabled.
Exploiting CVE-2018-12120 can allow attackers to connect to the debugger and execute arbitrary commands on the Node.js application.
A temporary workaround for CVE-2018-12120 is to avoid enabling the debugger on production systems or bind the debugger to specific interfaces.