Remote Memory Exposure Affecting node-addon-api package, versions >=0.0.0 <1.7.2 >=2.0.0 <2.0.1


0.0
medium

Snyk CVSS

    Attack Complexity High

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-NODEADDONAPI-571001
  • published 3 Jun 2020
  • disclosed 3 Jun 2020
  • credit Unknown

Introduced: 3 Jun 2020

CVE NOT AVAILABLE CWE-201 Open this link in a new tab

How to fix?

Upgrade node-addon-api to version 1.7.2, 2.0.1 or higher.

Overview

node-addon-api is a This module contains header-only C++ wrapper classes which simplify the use of the C based N-API provided by Node.js when using C++. It provides a C++ object model and exception handling semantics with low overhead.

Affected versions of this package are vulnerable to Remote Memory Exposure via the napi_get_value_string_utf8, napi_get_value_string_latin1 and napi_get_value_string_utf16 functions.