Cross-site scripting in Node.js - CVE-2018-12120

 

Cross-site scripting in Node.js - CVE-2018-12120

Published: November 29, 2018


Vulnerability identifier: #VU16167
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: CVE-2018-12120
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Node.js Foundation
Affected software:
Node.js

Detailed vulnerability description

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data when the Node.js debugger being enabled by passing the --debug or debug flags to Node.js. A remote attacker can make a change to default to localhost, attach to the debug feature and execute arbitrary JavaScript code.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


How to mitigate CVE-2018-12120

Update to version 6.0.15.

Sources