CVE-2026-40897
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.
Published:Apr 24, 2026
Last Modified:Apr 28, 2026
EPS:Apr 24, 2026
EPSS Score:0.00051
CVSS Score:8.8
Affected Products
Vendor
Product
Action
Vendor
Josdejong
Product
Mathjs
Josdejong
Mathjs
Vendor
Mathjs
Product
Mathjs
Mathjs
Mathjs
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
No CAPEC recorded yet
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
