Arbitrary Code Execution Affecting mathjs Open this link in a new tab package, versions <3.17.0

  • Attack Complexity


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


  • published

    28 Nov 2017

  • disclosed

    18 Nov 2017

  • credit

    Masato Kinugawa

How to fix?

Upgrade mathjs to version 3.17.0 or higher.


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

Affected versions of the package are vulnerable to Arbitrary Code Execution via typed-function. A malicious user could possibly execute arbitrary code in the JavaScript engine, by creating a typed function with JavaScript code in the name.