Node.Js · Node.Js · CVE-2018-12115
**Name of the Vulnerable Software and Affected Versions**
Node.js versions prior to 6.14.4
Node.js versions prior to 8.11.4
Node.js versions prior to 10.9.0
**Description**
The issue arises when Node.js is used with UCS-2 encoding, which is recognized under the names `ucs2`, `ucs-2`, `utf16le`, and `utf-16le`. In this context, the `Buffer#write()` function can be exploited to write beyond the boundaries of a single buffer. Specifically, writes that initiate from the second-to-last position of a buffer lead to a miscalculation of the maximum length of the input bytes to be written.
**Recommendations**
For versions prior to 6.14.4, update to version 6.14.4 or later.
For versions prior to 8.11.4, update to version 8.11.4 or later.
For versions prior to 10.9.0, update to version 10.9.0 or later.