All reports
Medium

nodejs: memory corruption in napi_get_value_string_* functions

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2020-8174

Probability of exploitation in the next 30 days: 7.65%

FIRST EPSS · 2026-11-22

Description

napi_get_value_string_*() allows various kinds of memory corruption in node < 10.21.0, 12.18.0, and < 14.4.0.

A flaw was found in nodejs. Calling napi_get_value_string_latin1(), napi_get_value_string_utf8(), or napi_get_value_string_utf16() with a non-NULL buf, and a bufsize of 0 will cause the entire string value to be written to buf, probably overrunning the length of the buffer.