CVE-2018-12120: High severity langgenius dify node.js vulnerability
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2018-12120?
CVE-2018-12120 is considered a medium severity vulnerability due to the risk of unauthorized remote access to the debugger.
How do I fix CVE-2018-12120?
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.
Who is affected by CVE-2018-12120?
CVE-2018-12120 affects all versions of Node.js prior to 6.15.0 that have the debugger enabled.
What can happen if CVE-2018-12120 is exploited?
Exploiting CVE-2018-12120 can allow attackers to connect to the debugger and execute arbitrary commands on the Node.js application.
Is there a workaround for CVE-2018-12120?
A temporary workaround for CVE-2018-12120 is to avoid enabling the debugger on production systems or bind the debugger to specific interfaces.