Arbitrary Code Execution Affecting mathjs package, versions <3.13.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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 npm:mathjs:20170527
  • published 28 Jan 2018
  • disclosed 27 May 2017
  • credit Jos De Jong

Introduced: 27 May 2017

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

How to fix?

Upgrade mathjs to version 3.13.3 or higher.

Overview

mathjs is an extensive math library for JavaScript and Node.js.

Affected versions of the package are vulnerable to Arbitrary Code Execution. The isSafeMethod was able to call other methods (like bind) which is not allowed and could cause code execution on the remote server.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.6 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low