CVE-2026-40897 HIGH

CVE-2026-40897: Math.js: Unsafe object property setter in mathjs

Vendor Josdejong
Product mathjs
Weakness CWE-915
Published April 24, 2026
Last update June 30, 2026

CVSS base score

8.8/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 24, 2026 CVE published
June 30, 2026 Record updated