CVE-2026-40897

HIGH CVSS 3.1: 8.8 EPSS 0.60%
Updated Oct 27, 2026
Mathjs
Parameter Value
CVSS 8.8 (HIGH)
Affected Versions 13.1.1 — 15.2.0
Fixed In 15.2.0
Type CWE-915, CWE-917
Vendor Mathjs
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Mathjs Mathjs
cpe:2.3:a:mathjs:mathjs:*:*:*:*:*:node.js:*:*
13.1.1 15.2.0

Related Vulnerabilities