JavaScript Math Library Vulnerability in Math.js Affects Users
CVE-2026-40897
8.8HIGH
What is CVE-2026-40897?
A significant vulnerability has been identified in Math.js, a popular library for mathematics in JavaScript and Node.js. From versions 13.1.1 to earlier than 15.2.0, this vulnerability enables attackers to execute arbitrary JavaScript through the library's expression parser. Applications utilizing Math.js where users can input expressions for evaluation are particularly at risk. To mitigate this risk, it is crucial to upgrade to Math.js version 15.2.0 or later, which contains the necessary security patches. For further information, consult the official advisory and relevant GitHub commits.
Affected Version(s)
mathjs >= 13.1.1, < 15.2.0
