Skip to content

← Public intelligence

npm package

mathjs

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

5 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.8npmAmendedPublished

    Unsafe object property setter in mathjs

    CVE-2026-40897 · GHSA-29qv-4j9f-fjw5

    Affected
    • npm mathjs >= 13.1.1, < 15.2.0
    Fixed in
    15.2.0· Vendor fix available
    Issue
    Impact This security vulnerability allowed executing arbitrary JavaScript via the expression parser of mathjs. You can be affected when you have an application where users can evaluate arbitrary expressions using the mathjs expression parser. Patches The issue was introduced in mathjs v13.1.1, and patched in mathjs v15.2.0. Workarounds There is no workaround without upgrading to v15.2.0. References You can find out more via the commit fixing this issue: https://github.com/josdejong/mathjs/commit/513ab2a0e01004af91b31aada68fae8a821326ad (part of PR https://github.com/josdejong/mathjs/pull/3656).

    Recommended action: Upgrade to 15.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 8.8npmPublished

    mathjs Allows Improperly Controlled Modification of Dynamically-Determined Object Attributes

    CVE-2026-41139 · GHSA-jvff-x2qm-6286

    Affected
    • npm mathjs >= 13.1.0, < 15.2.0
    Fixed in
    15.2.0· Vendor fix available
    Issue
    Impact This security vulnerability allowed executing arbitrary JavaScript via the expression parser of mathjs. You can be affected when you have an application where users can evaluate arbitrary expressions using the mathjs expression parser. Patches The issue was introduced in mathjs `v13.1.0`, and patched in mathjs `v15.2.0`. Workarounds There is no workaround without upgrading to `v15.2.0`. References You can find out more via the commit fixing this issue: https://github.com/josdejong/mathjs/commit/24d5ee7e25e85d49619b09122f055db4139bc057 (part of PR https://github.com/josdejong/mathjs/pull/3656).

    Recommended action: Upgrade to 15.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  3. High, CVSS 7.3npmAmendedPublished

    Prototype Pollution in mathjs

    CVE-2020-7743 · GHSA-x2fc-mxcx-w4mf

    Affected
    • npm mathjs < 7.5.1
    Fixed in
    7.5.1· Vendor fix available
    Issue
    The package mathjs before 7.5.1 are vulnerable to Prototype Pollution via the deepExtend function that runs upon configuration updates.

    Recommended action: Upgrade to 7.5.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Critical, CVSS 9.8npmAmendedPublished

    Arbitrary Code Execution in mathjs

    CVE-2017-1001003 · GHSA-pv8x-p9hq-j328

    Affected
    • npm mathjs < 3.17.0
    Fixed in
    3.17.0· Vendor fix available
    Issue
    math.js before 3.17.0 had an issue where private properties such as a constructor could be replaced by using unicode characters when creating an object. Recommendation Upgrade to version 3.17.0 or later.

    Recommended action: Upgrade to 3.17.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. Critical, CVSS 9.8npmAmendedPublished

    Arbitrary Code Execution in mathjs

    CVE-2017-1001002 · GHSA-vx5c-87qx-cv6c

    Affected
    • npm mathjs < 3.17.0
    Fixed in
    3.17.0· Vendor fix available
    Issue
    math.js before 3.17.0 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution. Recommendation Update to version 3.17.0 or later.

    Recommended action: Upgrade to 3.17.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →