CVE-2026-40897: Mathjs
High severity, CVSS 8.8. EPSS: 0.8% chance of exploitation in the next 30 days.
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
- Mathjs Mathjs: from 13.1.1, before 15.2.0 (fixed in 15.2.0)
Published 2026-04-24. Last modified 2026-07-15.