What’s Vulnerable › Vulnerabilities

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

Description

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.

Affected products

How to fix

Upgrade to a fixed version: josdejong mathjs 15.2.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-40897 or the next vulnerability affects your stack