p PatchFirst

CVE-2026-40897

CVE-2026-40897 · Math.js: Unsafe object property setter in mathjs

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Math.js is an extensive math library for JavaScript and Node.js. From 13.1.1 to before 15.2.0, a 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. This vulnerability is fixed in 15.2.0.

CVSS 8.8 · High · EPSS 0.6% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • mathjs

    Versions
    • >= 13.1.1, < 15.2.0: Affected

    No fix published

  • mathjs npm

    Affected ranges
    • SEMVER: ≥ 13.1.1, < 15.2.0

    Update to 15.2.0

Original sources

Check your server →