mathjs@2.6.0 vulnerabilities

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

  • latest version

    14.0.1

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mathjs package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Prototype Pollution

    mathjs is a math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with diff.

    Affected versions of this package are vulnerable to Prototype Pollution via the deepExtend function that runs upon configuration updates.

    How to fix Prototype Pollution?

    Upgrade mathjs to version 7.5.1 or higher.

    <7.5.1
    • M
    Arbitrary Code Execution

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

    Affected versions of the package are vulnerable to Arbitrary Code Execution.

    The expression parser in mathjs uses the eval and the new Function methods insecurely which could allow an attacker to execute arbitrary code on the remote server.

    this is due to an incomplete fix for npm:mathjs:20170331.

    How to fix Arbitrary Code Execution?

    Upgrade mathjs to version 3.11.5 or higher.

    <3.11.5
    • H
    Arbitrary Code Execution

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

    Affected versions of the package are vulnerable to Arbitrary Code Execution.

    The expression parser in mathjs uses the eval and the new Function methods insecurely which could allow an attacker to execute arbitrary code on the remote server.

    How to fix Arbitrary Code Execution?

    Upgrade mathjs to version 3.10.3 or higher.

    <3.10.3
    • M
    Arbitrary Code Execution

    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.

    How to fix Arbitrary Code Execution?

    Upgrade mathjs to version 3.13.3 or higher.

    <3.13.3
    • H
    Arbitrary Code Execution

    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.

    How to fix Arbitrary Code Execution?

    Upgrade mathjs to version 3.17.0 or higher.

    <3.17.0
    • C
    Arbitrary Code Execution

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

    Affected versions of the package are vulnerable to Arbitrary Code Execution. Forbidden properties like constructor could be replaced by using unicode characters when creating an object.

    How to fix Arbitrary Code Execution?

    Upgrade mathjs to version 3.17.0 or higher.

    <3.17.0