Arbitrary Code Injection Affecting mol-proto package, versions <1.0.6


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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDnpm:mol-proto:20160407
  • published8 Apr 2018
  • disclosed7 Apr 2016
  • creditCristian-Alexandru Staicu, Michael Pradel, Ben Livshits

Introduced: 7 Apr 2016

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade mol-proto to version 1.0.6 or higher.

Overview

mol-proto is a ES5-compatible object manipulation library for node and modern browsers.

Affected versions of the package are vulnerable to Arbitrary Code Injection due to unsafe use of the eval() function. Node.js provides the eval() function by default, and is used to translate strings into Javascript code. An attacker can craft a malicious payload to inject arbitrary commands.

CVSS Scores

version 3.1