Data Handling in Node.js - CVE-2016-7099

 

Data Handling in Node.js - CVE-2016-7099

Published: October 10, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32225
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-7099
CWE-ID: CWE-19
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to manipulate data.

The tls.checkServerIdentity function in Node.js 0.10.x before 0.10.47, 0.12.x before 0.12.16, 4.x before 4.6.0, and 6.x before 6.7.0 does not properly handle wildcards in name fields of X.509 certificates, which allows man-in-the-middle attackers to spoof servers via a crafted certificate.


Affected software

Node.js
Fedora
Ubuntu
nodejs (Alpine package)
nodejs-lts (Alpine package)
nodejs-dev (Ubuntu package)
nodejs-legacy (Ubuntu package)
nodejs (Ubuntu package)
nodejs-doc (Ubuntu package)
libuv
nodejs

How to mitigate CVE-2016-7099

Install update from vendor's website.

Node.js - update to 0.10.47
nodejs (Alpine package) - update to 6.7.0-r0
nodejs-lts (Alpine package) - update to 4.6.0-r0
nodejs-dev (Ubuntu package) - addressed in versions 0.10.25~dfsg2-2ubuntu1.2+esm1, 4.2.6~dfsg-1ubuntu4.2+esm1, 8.10.0~dfsg-2ubuntu0.4+esm1
nodejs-legacy (Ubuntu package) - addressed in versions 0.10.25~dfsg2-2ubuntu1.2+esm1, 4.2.6~dfsg-1ubuntu4.2+esm1
nodejs (Ubuntu package) - addressed in versions 0.10.25~dfsg2-2ubuntu1.2+esm1, 4.2.6~dfsg-1ubuntu4.2+esm1, 8.10.0~dfsg-2ubuntu0.4+esm1
nodejs-doc (Ubuntu package) - update to 8.10.0~dfsg-2ubuntu0.4+esm1
libuv - update to 1.9.1-1.el7
nodejs - addressed in versions 4.6.0-5.fc24, 6.7.0-107.el7, 6.7.0-107.fc25

External References

Related Security Bulletins