CVE-2026-40897

HIGH

mathjs <15.2.0 - Code Injection

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 8.8
EPSS 0.0009
EPSS Percentile 25.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-915
Status published
Products (1)
mathjs/mathjs 13.1.1 - 15.2.0
Published Apr 24, 2026
Tracked Since Apr 27, 2026