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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-JS-NODEADDONAPI-571001
  • published3 Jun 2020
  • disclosed3 Jun 2020
  • creditUnknown

Introduced: 3 Jun 2020

CVE NOT AVAILABLE CWE-201  (opens 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.

CVSS Scores

version 3.1